arendst / Sonoff-MQTT-OTA

Provide ESP8266 based itead Sonoff with MQTT and OTA firmware - Now EOL
202 stars 47 forks source link

Default to on when powered up #11

Open ghoggan opened 7 years ago

ghoggan commented 7 years ago

It would be good to have the ability to set the device to switch itself to on when powered up

arendst commented 7 years ago

It does when it was on before power down.

ghoggan commented 7 years ago

Hi Theo What I had in mind was to power on at startup regardless of the previous state. This would allow the unit to be easily installed inline with existing lighting circuit wiring. Normal control would be via Mqtt or Alexa, fallback if automation fails would be to use the existing light switch. Helps the WAF (wife acceptance factor) I realise there is allowance for external switch input but this would leave the existing wiring more or less intact.

Thanks for the response, Glenn

Sent from my iPad

On 19 Dec 2016, at 7:26 AM, Theo Arends notifications@github.com wrote:

It does when it was on before power down.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

ghoggan commented 7 years ago

Hi Theo Meant to post to https://github.com/arendst/Sonoff-MQTT-OTA-Arduino

Glenn

Sent from my iPad

On 19 Dec 2016, at 4:28 PM, Glenn Hoggan gahoggan@netspace.net.au wrote:

Hi Theo What I had in mind was to power on at startup regardless of the previous state. This would allow the unit to be easily installed inline with existing lighting circuit wiring. Normal control would be via Mqtt or Alexa, fallback if automation fails would be to use the existing light switch. Helps the WAF (wife acceptance factor) I realise there is allowance for external switch input but this would leave the existing wiring more or less intact.

Thanks for the response, Glenn

Sent from my iPad

On 19 Dec 2016, at 7:26 AM, Theo Arends notifications@github.com wrote:

It does when it was on before power down.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

8666 commented 7 years ago

Yes than would be nice but there should be 3 contacts on the output. Now only normaly-open and com are available On Dec 19, 2016 06:29, "ghoggan" notifications@github.com wrote:

Hi Theo What I had in mind was to power on at startup regardless of the previous state. This would allow the unit to be easily installed inline with existing lighting circuit wiring. Normal control would be via Mqtt or Alexa, fallback if automation fails would be to use the existing light switch. Helps the WAF (wife acceptance factor) I realise there is allowance for external switch input but this would leave the existing wiring more or less intact.

Thanks for the response, Glenn

Sent from my iPad

On 19 Dec 2016, at 7:26 AM, Theo Arends notifications@github.com wrote:

It does when it was on before power down.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/arendst/Sonoff-MQTT-OTA/issues/11#issuecomment-267885068, or mute the thread https://github.com/notifications/unsubscribe-auth/ABcDTWASKOkLre-LZq1pSYwFC07i0Esgks5rJhYjgaJpZM4LQOFY .

malhal commented 7 years ago

Default to opposite is maybe what you want. And a push switch that breaks circuit.