Default power state after power outtage

Hi

i have a gledopto led strip controller that after a power outage it powers on automatically.
in the zigbee2mqtt component i can see this two kind of message sent by device:

  • Received Zigbee message from ‘0x00124b001d3ac596’, type ‘readResponse’, cluster ‘genOnOff’, data ‘{“onOff”:1}’ from endpoint 11 with groupID 0

  • MQTT publish: topic ‘zigbee2mqtt/0x00124b001d3ac596/availability’, payload ‘online’

how i can set an automation that when this two message are sent then it power off the device?

thanks

Like this:

automation:
  alias: Keep it off
  trigger:
    - platform: state
      entity_id: light.your_light
      from: 'unavailable'
      to: 'on'
  action:
    - service: light.turn_off
      entity_id: light.your_light

Assuming of course that Home Assistant runs through the outage…

Tank you but sometime the powerouttage Is faster than homeassistant update the state of the light to available to unavailable…