vinodsr / node-red-contrib-tuya-smart-device

a node-red module for managing tuya smart devices
https://flows.nodered.org/node/node-red-contrib-tuya-smart-device
MIT License
43 stars 15 forks source link

Light bulb color control #59

Closed xjustbmw closed 3 years ago

xjustbmw commented 3 years ago

I managed to start up the bulb using localkey and dps changed to 20 based on the flow1.js example

are there any examples to change to white/color, and select color for the bulb? See documentation link is only stated in a picture.

thanks

xjustbmw commented 3 years ago

i figured it out by debugging the output of the light and sending commands from smart life app :)

is there any way to listen the output of devices that are usually offline and connect only when an event is present ? like water leak detectors, motion sensors, etc ?

msillano commented 3 years ago

is there any way to listen the output of devices that are usually offline and connect only when an event is present ?

tuyaDAEMON solves the problem using tuya-cloud and a 'brige': see TRIGGER topic and see also the minimum flow to get it working.

The trick requires a 'smart switch' that acts as a "brige", but, since only the "countdown" function is used, the switch is still available for any purpose.

Best regards. m. s.