Innr zigbee smart bulb turn off

Does anyone know how to switch off my Innr smart bulb ?
I’ve tried everything but nothing works:

- alias: "Innr RB 272T: uit wanneer test uit is"
  id: innr_rb_272t_off_when_test_off
  trigger:
    - platform: state
      entity_id: input_boolean.test
      to: "off"
  action:
    - service: light.turn_off
      target:
        entity_id: light.innr_rb_272_t
  mode: single

Before creating an automation, have you tried basic things like adding the light to your HA dashboard and trying to toggle it from there?

If so, do you see any errors in your logs? What does the history of the light entity say?

Yes, everything else works perfect, dimming, color, except turning it off.
No errors in logfile.
History says on and off…

Try this format

actions:
  - action: light.turn_off
    metadata: {}
    data: {}
    target:
      entity_id: light.innr_rb_272_t

or

action: light.turn_off
target:
  entity_id:  light.innr_rb_272_t
data: {}
- alias: "Innr RB 272T: uit wanneer test uit is"
  id: innr_rb_272t_off_when_test_off
  triggers:
    - trigger: state
      entity_id: input_boolean.test
      to: "off"
  actions:
    - action: light.turn_off
      target:
        entity_id: light.innr_rb_272_t
  mode: single

And look in here to make sure these entities exist.
Open your Home Assistant instance and show your state developer tools.
input_boolean.test
light.innr_rb_272_t

And also using LLM’s to write code for you is not helping you.

Another thing you may be doing is hit the run in the UI editor to test this. Run doesn’t use the trigger at all.
You need to save the automation then change the state if the test entity to trigger this.

1 Like