Question: I bought a wifi Tuya LED strip. After install, I can manage it in the Tuya app and can manage it with the Tuya integration in HA(Colorpicker in Developer tools)
It’s all working fine in HA core-2021.12.10. The problem is the automation.
I can only manage the LED strip with service light.turn_on and light.turn_off when I don’t set any attributes like brightness, RGBcollor, Transition, etc.
I can set attributes when I use the color picker in Developers Tools.
What can be wrong, or is there a workarround? (edited)
trigger:
- platform: state
entity_id: >-
binary_sensor.zb_pir_slaapkamer_occupancy,
binary_sensor.zb_pir_sk_beneden_marjan_occupancy
to: 'on'
condition:
- condition: and
conditions:
- condition: state
entity_id: sun.sun
state: below_horizon
- condition: state
entity_id: light.lamp_slaapkamer
state: 'off'
action:
- service: light.turn_on
data: {}
target:
entity_id: light.smart_led_strip_rgbww_5_meter_ip65
If I add Brightness to the automation. the Led Strip won’t switch on/off anymore.
trigger:
- platform: state
entity_id: >-
binary_sensor.zb_pir_slaapkamer_occupancy,
binary_sensor.zb_pir_sk_beneden_marjan_occupancy
to: 'on'
condition:
- condition: and
conditions:
- condition: state
entity_id: sun.sun
state: below_horizon
- condition: state
entity_id: light.lamp_slaapkamer
state: 'off'
action:
- service: light.turn_on
data:
brightness: 30
target:
entity_id: light.smart_led_strip_rgbww_5_meter_ip65
Who can help me?