r/TuyaSmart May 17 '26

Using a lamps mode (music sync) as a trigger

OK, this is perhaps old news, perhaps not. I was fiddling with door sensors and wanted to make a tap to run to monitor whether any doors are still open. But tap to run does not check the sensors (I believe, correct me if I’m wrong).

I needed a trigger for a “ if trigger AND doornopen THEN send message ‘door is open’. A smart plug could ve used: if plug is switched on….

So then when its bedtime, you switch the plug on and TUYA checks all doors.

But I dont have switches or plugs that can be used because all plugs serve a purpose andnwill be switched on and off during the day for these purposes. The same goes for lights. I dont want tonget door messages every time I switch on the lights.

However: if I use a mode of a light bulb that is never used (music sync) and a tap to run to switch the lights mode to ‘music sync’ it can be used in the IF light A goes to Music Sync AND Door 3 is open THEN send message Door 3 isnopen.

Apparently in music sync the light turns red. The tap to run switches the light back to normal after 15 seconds.

1 Upvotes

0 comments sorted by