{Edited}
It would be useful to have a switch that goes on & off by itself. I currently have 20 entries in Home to every hour make sure certain devices are off. I sometimes find a device has not gone off; Most important to me is a pump plug.
{
"name": "Backyard Dummy",
"stateful": true,
"repeat_on_off": 20,10, // Stays ON for 20s, OFF for 10s. If either value is 0 then disabled.
"reverse": false,
"time": 0,
"accessory": "DummySwitch"
},
OR
{
"name": "Backyard Dummy",
"stateful": true,
"reverse": false,
"time": 20000,10000, // Stays ON for 20s, OFF for 10s. A missing or 0 second number disables the repeat. Backward compatible.
"accessory": "DummySwitch"
},
OR
{
"name": "Backyard Dummy",
"stateful": true,
"reverse": false,
"time": 20000,
"repeat_after":10000, // Stays ON for 20s, OFF for 10s. A missing attribute or 0 disables the repeat. Backward compatible.
"accessory": "DummySwitch"
},
Maybe add
"repeat_number": 12, // Repeat number of times/number of laps. A missing attribute or 0 lets the repeat on of going indefinitely.
"repeat_end_on": true, // End with the ON state. A missing attribute or FALSE lets the repeat on of going indefinitely.
Example
"time": 20000,
"repeat_after":10000"
"repeat_number": 3
"repeat_end_on": true,
Button press > on off on off on (Ends at ON, three ON states, two OFF states)
"repeat_end_on": false,
Button press > on off on off on off (Ends at OFF, three ON states, three OFF states)
{Edited} It would be useful to have a switch that goes on & off by itself. I currently have 20 entries in Home to every hour make sure certain devices are off. I sometimes find a device has not gone off; Most important to me is a pump plug. { "name": "Backyard Dummy", "stateful": true, "repeat_on_off": 20,10, // Stays ON for 20s, OFF for 10s. If either value is 0 then disabled. "reverse": false, "time": 0, "accessory": "DummySwitch" }, OR { "name": "Backyard Dummy", "stateful": true, "reverse": false, "time": 20000,10000, // Stays ON for 20s, OFF for 10s. A missing or 0 second number disables the repeat. Backward compatible. "accessory": "DummySwitch" }, OR { "name": "Backyard Dummy", "stateful": true, "reverse": false, "time": 20000, "repeat_after":10000, // Stays ON for 20s, OFF for 10s. A missing attribute or 0 disables the repeat. Backward compatible. "accessory": "DummySwitch" },
Maybe add "repeat_number": 12, // Repeat number of times/number of laps. A missing attribute or 0 lets the repeat on of going indefinitely.
"repeat_end_on": true, // End with the ON state. A missing attribute or FALSE lets the repeat on of going indefinitely.
Example "time": 20000, "repeat_after":10000" "repeat_number": 3 "repeat_end_on": true, Button press > on off on off on (Ends at ON, three ON states, two OFF states) "repeat_end_on": false, Button press > on off on off on off (Ends at OFF, three ON states, three OFF states)