Skip to content
This repository has been archived by the owner on Aug 22, 2021. It is now read-only.

Upon power on, light turns on. #24

Closed
tsaitsai opened this issue Oct 22, 2017 · 8 comments
Closed

Upon power on, light turns on. #24

tsaitsai opened this issue Oct 22, 2017 · 8 comments
Assignees
Milestone

Comments

@tsaitsai
Copy link

tsaitsai commented Oct 22, 2017

Sacha, thanks for this project. Really useful.
I would like the option to have the bulb turn on upon power-on. Right now, it seems bulbs stay off until explicitly given a command to turn on (so you have to monitor the mqtt status topic for that bulb). If the bulbs defaults to turning on when powered, at some setting defined in the config maybe, then the bulb at least functions like a regular light bulb in the absence of a controller on the network.

Edit: I think this must be the behavior on the latest version? But just updated and the bulb turns on at the last setting. Thanks!

@stelgenhof
Copy link
Owner

@tsaitsai Not sure why you closed it, but I think this is indeed a good feature to have. Currently, the firmware sets the light to the last known state. So if it was on, it will be on again after being powered on again.

@tsaitsai
Copy link
Author

tsaitsai commented Oct 22, 2017

@stelgenhof I got confused! I didn't realize I was testing different states - the older bulb was off when I power cycled and the newer bulb was on when power cycled, making me think you've already implemented this.

But yes, I think making it behave like a normal bulb in case of automation failure would be nice. Being able to operate with physical light switches is great.

@tsaitsai tsaitsai reopened this Oct 22, 2017
@stelgenhof stelgenhof added this to the v0.6 milestone Nov 13, 2017
@rbu
Copy link

rbu commented Feb 22, 2018

I have to second this request. If you use this bulb in old school lamps with wall switches, it's extremely useful if they can default to a "dumb" behavior for users who do not use an app.

@stelgenhof stelgenhof self-assigned this Feb 22, 2018
@peterjohnston
Copy link

Thanks very much for this super-useful project!

I have a further suggestion for this, in that each time the bulb power-cycles, it moves to a different state. Perhaps this could be part of a future "effects" enhancement where it cycles around them.

This would allow a user to have the bulb move from, for example: dim, medium, bright, etc, on subsequent power-ups.

This would give an instant change rather than having to wait for a wifi connection, report its existing state via MQTT then be told what its next state should be remotely.

@stelgenhof
Copy link
Owner

@peterjohnston My apologies for the late reply! I have just added a feature allows you to set the behaviour of the light after a power cycle. As for your suggestion, would you mind creating a separate issue/feature request?

@stelgenhof
Copy link
Owner

@tsaitsai @rbu Feature is done! It has been added to the develop branch, which means you have to compile the firmware yourself. Official release/binary will come (if it has become stable).

Let me know if you experience any issues.

Cheers! Sacha

@rbu
Copy link

rbu commented May 29, 2018

@stelgenhof thanks so much for this change and the project

@stelgenhof
Copy link
Owner

Included in the just released version 0.6.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants