pponce/homebridge-script2

pushbutton functionality

kilbamoo opened this issue ยท 8 comments

Would be great if the switch could act as a pushbutton too. When it is activated, it turns itself off after a given time in seconds.

I've been trying to do this, i have a python script that creates a fileState file, fires a relay for 1 second, then deletes the fileState file but the state is not updated in the homekit app unless i reopen the app.

The best i can do at the moment is use the same script for both "on" and "off" in config.json.

@rijidpish I think my pull request will sort that issue of the state not being updated for you: #15

Nice! Iโ€™ll have a ganders at it now

Yaweh commented

Should this be working now? I installed plugin today and the fileState does not seem to be updating Homekit.

Yep, it should be working. Want to share your config.json?

Yaweh commented

your confident response fixed it! Also, raspberry reboot might of fixed it. thanks, works great.

๐Ÿ‘๐Ÿป๐Ÿ‘๐Ÿป๐Ÿ‘๐Ÿป Happy New Year ๐Ÿฅณ

@Yaweh Do you might sharing your config please? I'm running into the same problem ๐Ÿ˜