Hi there, thank for for the homekit support. I would like to have a configurable default state when the Shelly powers up, preferably configurable through the web interface (not sure if something is possible at all in homekit). It would be great if I can have the Shelly either ON, OFF or at the last state before it rebooted (lost power) on a new start up. Thank you!
kind of already is "persist sate" that will return the device to previous state after power cycle.

this can be closed now ?
The persistant state is nice, but I have a pump for example, which after a powerloss should be ON for a few minutes, regardless if it was ON or OFF before.
@one4many that may be beyond what a simple switch like shelly can be expected to do. does the stock firmware support this use case?
can it be set to On on power back? ( similar to the stock firmware )
what ever the state was before power cycle it will return to that state.
i.e. if it was ON, after a power cycle it will return to ON.
I know but is there a way it can be set to On only?
On Sun, Apr 5, 2020 at 12:57 Andy Blackburn notifications@github.com
wrote:
what ever the state was before power cycle it will return to that state.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mongoose-os-apps/shelly-homekit/issues/22#issuecomment-609390357,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE4Z2I4SFCSTFTCFOWEWRQLRLBIW7ANCNFSM4LCNYAGQ
.>
it's a good idea to implement it. convert current "Persist state" checkbox into a select "State on power-up", with "on", "off", "previous" and "input".
This would help me a lot in my setup I'm not using the sw wire ( have a 4 switch setup will endup laying alot of wires to the lights ), if the state was On, i will not have to lay another wire for the switch port in case someone switches it off and then on again
+1
This is what I am looking for 'on' / 'off' / 'previous' / 'input'
until this is resolved i switched back to stock firmware and used Homebridge ( installed on a Synology NAS at home ) its working like a charm.
@rojer could 'persist_state' be changed to a menu option like 'in_mode'
0 = always off after power cycle
1 = always on after power cycle
2 = remember previous state
this coupled with the pull request for 'auto power off' could do what people are seeking ?
@andyblac this is exactly what i proposed, plus the "input" choice, which would take input value.
released in 1.8.0
Most helpful comment
The persistant state is nice, but I have a pump for example, which after a powerloss should be ON for a few minutes, regardless if it was ON or OFF before.