Trick #6: Even more switches
- This topic has 0 replies, 1 voice, and was last updated 2 years, 8 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
It is well known that you can connect a switch to the sensor inputs.
But the fact that you can connect as many switches as you want via the network is certainly new!
Using the smart button “Shelly Button1” you can start up to 4 different programs or control individual stations with one button, such as the one here:
https://www.reichelt.de/shelly-button-1-wifi-schwarz-shelly-button1-p284173.html
These 4 different functions are achieved by distinguishing between single, long, double and triple pressing. A command can be assigned to each type, here the control of the OpenSprinkler API:
The button must be programmed so that when pressed it gives the command
http://os-ip/cm?pw=xxx&sid=0&en=1&t=360
where sid=0=1st zone, t=360=seconds runtime
And e.g. long press finishes it:
http://os-ip/cm?pw=xxx&sid=0&en=0
The password pw must be entered as an MD5 hash, e.g. you can convert this with an online MD5 hash tool.
(e.g. here: https://www.md5hashgenerator.com/)
The full list of API commands can be found here:
https://openthings.freshdesk.com/support/solutions/articles/5000716363-os-api-documents