I bought a few 12W Lumary recessed canless lights with tuya wireless interface and installed in the ceiling.
My light switches are regular on/off switches which remove power to the lights when OFF.
Setup was easy with Smartlife App and Tuya-Local (Tiny-Tuya).
Automation was easy with a script that starts scenes for day and night.
HOWEVER, the lights are supposed to be connected 100% - online all the time. I did not have that condition.
THEREFORE, the automation never did get all lights right. I figured that the reason was the delay in reconnecting to the router and I tried to add a delay my automation for some seconds. That did not work well.
After trying a lot of things I found the integration “Ping (ICMP)” and decided to wait for the light to answer a PING. That did work.
STEPS:
- Install integration “Ping (ICMP)”
- Find out the IP-address of each light (tuya local will give you that)
- Add a PING for each light.
- Configure PING to 2 pings and change status to offline from 180s to 5s
- Adding a PING will create a binary_sensor for the light status “connected”
- Use this as a trigger for triggering the automation
- If you have more lights on one switch, add all lights (PING) as triggers.
That causes multiple executions of the scene but does the job.
The PING does not seem to slow HAOS down.
SmartLife: I recommend setting the “power-on-behavior” in the settings of each light to “restore memory”.
HINT: If you are looking for DP / light options - look at scenes defined for your lights in your scenes.yaml file for infos.
Good Luck !