Hi,
I’m trying to send color_temp value to TUYA RGB led which based on MQTT payload. what am I doing wrong here
- id: '1664550250537'
alias: White
description: Sending RGB code
trigger:
- platform: mqtt
topic: house/rgb_balcony_projector_color
value_template: '{{ ((153 + trigger.payload | int * 347 / 100 }}'
condition: []
action:
- service: light.turn_on
data:
rgb_color: 'value_template'
entity_id: light.smart_bulb_600hz
metadata: {}
mode: single```