robertklep / name.klep.sonoff

Homey driver for Sonoff devices
7 stars 7 forks source link

"default state" setting #3

Open robertklep opened 6 years ago

robertklep commented 6 years ago

When a device registers itself with Homey after powering up, Homey could make sure the device is switch on (because the device default is to be switched off after power up).

JPe2 commented 6 years ago

could this be a choice in the device setting if the status should be kept as it is after power-up or that is should be turned OFF always? Some devices should not always be turned OFF after power-down (fridges, pumps). z-wave devices do have this choice.

robertklep commented 6 years ago

Not sure if I understand what you mean.

By default, the Sonoff devices will be turned off after they powered up (at least the devices that I have).

I'm proposing a device setting that would allow turning the device on automatically after it has powered up and has connected with Homey.

Or do you mean that Homey should remember the state for each device ("off" or "on") and restore that state when a device is powered up?

JPe2 commented 6 years ago

Hi, thanks for responding and sorry for not being clear, I have 3 plug-in modules (S20 Firmware 1.6.0) and 1 simple relay-module (Model:Sonoff Firmware 1.6.0), they are not connected to Homey (yet) but in the original state, connected to my smartphone. When they are in the ON state and the power to these modules is switched OFF, and after a while switched ON again, then all the modules are still in the ON state. What I would like is a that there is a possibility to make a choice between "always OFF" or "same state as before power-down" , same as used in the z-wave devices: Herstel status (always ON I've never seen, but maybe others have?) 2018-01-29_012649 herstelstatus

robertklep commented 6 years ago

I think that we're talking about the same thing 😁

However, firmware 1.6.0 is going to be an issue: you won't be able to use my app with devices running the original 1.6.0 firmware (in that firmware ITEAD, the manufacturer of the Sonoff devices, has disabled the ability to pair with a different "cloud server", like Homey).

There's not workaround yet, and it's unclear if there will ever be a workaround, as this will require support from the manufacturer.

However, at the moment I'm working on supporting an alternative firmware for Sonoff devices, Sonoff-Tasmota. It won't be trivial to set up, as it requires opening up the device and flashing a new firmware, but at least it's an alternative to get the devices working with Homey again.