Animated Stair Case Pir data to HomeAssistant

Hi All

Can any one please guide me in right direction here please.

I do have Stair case mod installed (+1 Year) all working good but i have scheduler running in HA to cut power supply off in a day time works well using relay pin.

But problem i have is occasionally need stairs to turn on outside of present hours at night especially.

As controller never looses its power i can read On/OFF states on “MQTT Explorer” and i would like to use this data to trigger automation to override Off state when needed.

the problem i have is that HA not getting data using this

  binary_sensor:
    - name: "Stair Motion1"
      state_topic: "wled/Stair01/motion/1"
      qos: 1
      device_class: motion

and i get this

image

Is any one done this successfully ? as i don’t see a need to purchase additional PIR to get this to work.

Is this me doing it wrong or its not possible ?

Thanks in advance.

Regards

For any one that struggles like me solution below

# Stair Motion Sensor
  binary_sensor:
    - unique_id: "Stair Motion1"
      name: "Stair Motion1"
      state_topic: "wled/Stair01/motion/1"
      payload_on: "on"
      payload_off: "off"
      qos: 0
      device_class: motion

Regards