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
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?
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 ๐