tschaban / SONOFF-BASIC-firmware

Sonoff Basic firmware; config by browser, OTA, MQTT, DS18B20
http://smart-house.adrian.czabanowski.com/en-sonoff-firmware/
MIT License
19 stars 11 forks source link

New functionality request - change state after losing connection #25

Closed Sufixx closed 6 years ago

Sufixx commented 6 years ago

Hello,

I wish AFE had the following functionality settings: When wifi or mqtt goes down for an extended period of time (amount of time to set), do:

Change state of relay to (selectable options): no change, turn off, turn on There are already settings for changing state when MQTT connection is back, but imagine situation then for some reason wifi router or mqtt server dies, sonoff is left all alone and we're out of the home - heating/watering/A/C keeps running until we do return and may cause some problems or at least boil fish in aquarium if not equipped in own timer/themostat.

Greetings!

tschaban commented 6 years ago

hi, make sense. I added to a completly newer version of AFE firmware I'm working on https://github.com/tschaban/AFE-Firmware/issues/29

tschaban commented 6 years ago

will be implemented in other AFE project https://github.com/tschaban/AFE-Firmware

Sufixx commented 6 years ago

Thanks!

until new release I added Relay.off(); to runSleepMode for one of my switches ;)