Force Bulb Color When Switch is Back On


#1

1) Give a description of the problem
Sengled bulb in a lamp can’t be forced to change colors once lamp is physically switched OFF then ON during scheduled time.

2) What is the expected behaviour?
Between 7AM and 7PM light is white, between 7PM and 7AM light is blue even if physical lamp switch is turned OFF and back ON.

3) What is happening/not happening?
If light is physically turned OFF at switch during 6:55-7:05 for example, the light misses color change cue. Is there a way to continuously force the color change during the given color period to ensure color is achieved EVEN if someone turned the physical switch OFF and ON?

**4) Post a Green Snapshot of the…
All attempts to capture lights physical ON/OFF status have failed. The scheduled color changing part is easy as long as the physical switch is left ON.

5) Attach logs after turning logging level to Full
N/A


#2

If I understood you correctly you want the light to be white during the day and blue at night. This might work.


#3

Thanks Moe. I haven’t had a chance to try it but thought I should explain further.

During the day people use the lamp with said bulb as an old school, walk over and turn the lamp on and off light source. The issue happens when the light is physically switched off and time passes the programmed color change time. When the light is turned on it is still white and not blue.

My only thought was if there is a way to continually force a color change so when the lamp is switched on it changes.

Thanks again


#4

When you reach over and manually turn off the lamp, the SmartBulb goes offline, and becomes 100% dumb.

Nothing nohow can do anything with a device that has no power.

Once power is restored, most bulbs jump to default color at maximum brightness.

About 10-30 seconds later, the device connects to the ST hub… and from this point onwards, it can accept automations.


So… Long story short:
If the device has just returned to power, then it will likely be incorrect for 10-30 seconds while it tries to connect to the hub.


Side Note:

If the bulb has power at 7PM, you can make a piston:

Every day at 7PM
    IF Bulb is on
        Then Set color to blue
    END IF
END EVERY

This solves the time cross over…

@Moe67’s hj2m piston will cover all other scenarios.
(although I would probably use the trigger: “IF Bulb's switch CHANGES TO on”, since it cannot turn blue if the bulb is off)


#5

although I would probably use the trigger : “ IF Bulb's switch CHANGES TO on ”,

@WCmore, that is the right trigger to use, with Phillips hue it actually turn the light back on if it gets the set color command, thx for the correction.