[SOLVED] Use smoke alarm sensor in automation for device HS1SA

Hello,
I want to use this device HEIMAN HS1SA control via MQTT | Zigbee2MQTT in order to sound the alarm when a motion sensor detect a movement (or a door open)
Basically the trigger in automation to be the movement sensor (o door sensor) and the action to be sound the alarm
As you see in documentation the smoke sensor exposes:

Smoke (binary)

Indicates whether the device detected smoke. Value can be found in the published state on the smoke property. It’s not possible to read (/get) or write (/set) this value. If value equals true smoke is ON, if false OFF.

I have tried to do this automatization to force to change the status of the sensor, but is not working (the sensor alarm does not start)

id: '1654703924042'
alias: Possible robbery
description: ''
trigger:
  - type: opened
    platform: device
    device_id: bda8623cd2386e8abc7c84fa6daa44c6
    entity_id: binary_sensor.0x00158d0007e58bdf_contact
    domain: binary_sensor
condition: []
action:
  - condition: state
    entity_id: binary_sensor.0x847127fffeaaee94_smoke
    attribute: smoke
    state: 'true'
    for:
      hours: 0
      minutes: 1
      seconds: 0
mode: single

That’s impossible; the device is only capable of sending information.
I think you should look at some other device, like Neo NAS-AB02B2 or Nest Mini

You’ve given the answer yourself by the way:

It’s not possible to read (/get ) or write (/set ) this value. If value equals true smoke is ON, if false OFF

And you are trying to write a value.

Thank you clarifying this!

1 Like