Fix Tuya RGB socket
Some Tuya sockets/plugs are reconized as RBG lights. In Homey you can’t control the switch functionality and you are losing the power monitoring for those plugs.
Example plug:
Aliexpress link: Lonsonho Tuya Smart plug
Howto:
- Add a virtual device in Virtual Devices (choose Device → Add → Icon → Plug → Check “Power”)
- Add your tuya device in Tuya-cloud.
- Add a variable in Homey named
Tuya Device ID
with the value of the device from step 1 - Import the TEF into The Flow Exchange(r)
- Replace "Virtual device (socket) with the device from step 2
- Replace "Tuya device (light) with the device from step 1
- Open the flow in the flow editor (https://my.homey.app/)
Apps used:
Other notes/Tips:
- Get the power value (named cur_power in my device) from the plain text events which your devices send to Homey (Follow the RAW - commands how-to here.
- You can “hide” the original device by moving it to a zone named
z_DontTouch
or999_hidden
- When you want to add multiple plugs, change the variable
Tuya Device ID
in your newly created flow. After that run the steps again.
TEF:
H4sIAAAAAAACA81XyW7jRhD9FYGYo3rQ+8JbEsPBHHIJjFwMw+ilWhJGIh2J8gLH/55qUrZDjTJgIgfIQZBIVRffe1X1uvlcpap+rpTQOorICDOWEelyII4bQRRIxXVghnNR4pqqrq72T76eXUBot76aVxFv7dr4FbrqZV6xnCjFD4mcRiKpiiQkK4lz1BufqbLO/jXRLMH9KsI43Xq1WGI2THdfYqlT0lAlCHWRE5mlIN5KS2j0OkhQyfE0ynkx5Pxygfm6Aq/brppFn7ArgbHdfO4w8HNct/vx0uFOifRVff1crfAPJrJRLDrCjQEiDWgSFDDilZNWxhSidPikkuNy9Tjr8/z684+zgyrzCqq62+6hJ/dcOUE5EzYSw4QnUvNEbMiOeG20Y0oLDbTE3fv1HldWed0+1LMfLmcl+Xve3exh1S1nd+0DbGcb8Lt9TxIf0q7bLa57gjWuxBuPVc3pvHqqao1fD6vULau62a/X82oJvdSHq6JV03ZQCpktcJ4ZkOyjJVJJiSgV/spKJ3AadJIF5XtyXr5bTLFsN/BU+7u7+kjoeS9nuXEFj90vsPMLOJQIK7RYwBavdqh7FTTLxmtFrKWGSMBfwdlMeMjUBxajk7S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