question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Agnostic button, how to ?

See original GitHub issue

Hi, I’m playing with node-red + node-red-contrib-homekit-bridged with great fun, so first of all I want to thank you for this beautiful project.

I’ve read about the differences between switch and statelessProgrammableSwitch but none of them works in my case, I suppose I’m missing something because my need is very basic.

I have some remote controlled outlets with two remotes. I would like to use one of them with Siri, telling to turn ON/OFF the lights.

img_2321

I would like HomeKit to be absolutely agnostic about the light states.

As you can see remotes are two, so even if the lightbulb or switch state are ON inside HomeKit, that could be false (someone could have triggered the other switch). And beside it, the fact to be, for instance ON in HomeKit means that a switch can’t be turned ON again without turning it Off before, HomeKit won’t let you do it.

statelessProgrammableSwitch could have been the solution, but: 1. it needs a Hub 2. it changes the states of switches, which brings me back to the first problem, the switch state isn’t stateless.

Any ideas ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ebaauwcommented, May 23, 2018

A push button (stateless programmable switch) is an input-only device, just like the physical remote. It’s used to control other HomeKit devices, it cannot be controlled itself from HomeKit (nor by Siri).

If you want to provide a virtual push button to a HomeKit app, you’d need to create a write-only custom characteristic, like Identify. Unfortunately, neither Apple’s Home app nor Siri support custom characteristics. The only thing you can do is create a regular Switch service, and automatically reset the On chacteristic to false, say 500ms after it’s been pressed.

0reactions
ghostcommented, Nov 4, 2019

@Shaquu yeah I’m using it, maybe not the latest version, I’ll take a look and update the doc

Read more comments on GitHub >

github_iconTop Results From Across the Web

Buttons - Agnostic UI
Everyone knows buttons are the life of the party ... import 'agnostic-react/dist/esm/index.css'; import { Button, ButtonGroup } from 'agnostic-react'; ...
Read more >
Create a browser-agnostic PWA install button | by Kevin Basset
So an install button should by definition be browser-agnostic. Here is how to build the perfect PWA install button.
Read more >
Browser-Agnostic Install Button - Progressier
Browser-Agnostic Install Button. Create a PWA install button that works beautifully across devices and browsers.
Read more >
Agnostic Button - Etsy
Under “Add your personalization,” the text box will tell you what the seller needs to know. Fill out the requested information. Click “Buy ......
Read more >
Atheist Buttons & Pins - No Minimum Quantity - Zazzle
Put a pin in it with a Atheist button at Zazzle! Button pins that really stand out with thousands of designs to pick...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found