How to get Heiman Siren with ZHA to work

Hello, @gr1nch @leosedf have either of you been able to integrate it with Alarmo yet. Looking to buy this siren but need it to work with Alarmo. Thank you!

I havenā€™t done much work on it, i have a script that runs it perfectly with light but i havenā€™t managed to run the script from alarmo it says something about a missing key. Probably a configuration error from my side.

Hey @stroodle96 the siren (HS2WD-E) works perfectly for me with HA and Z2M. Iā€™ve not added it to Alarmo yet, but it will be trivial as it is now a switch entity which can be toggled on or off: on is the siren. Youā€™ll need to adapt to your choice of device in Z2M which defines the topic in MQTT.

Entity creation

Example button

I had upgraded my Zigbee adapter to the ā€œSONOFF Zigbee 3.0 USB Dongle Plusā€ one of the recommended options here.
https://www.zigbee2mqtt.io/guide/adapters/#recommended

1 Like

I usually try and muddle through and just figure things out - but I cannot get this one! Iā€™m a bit a newb with Z2M admittedly.

I have tried to use your code, slightly updated as below, but the switch entity just always states ā€˜Unavailableā€™.
Can anyone suggest where Iā€™m going wrong?

mqtt:
    switch:
      - unique_id: house_siren_2_switch
        name: "House Siren 2 Switch"
        state_topic: "zigbee2mqtt/House Siren 2"
        command_topic: "zigbee2mqtt/House Siren 2/set"
        availability:
            - topic: "zigbee2mqtt/House Siren 2/availability"
              payload_available: "online"
              payload_not_available: "offline"
        payload_on: '{"warning": {"mode": "fire", "level": "low", "strobe_level": "very_high", "strobe": true, "strobe_duty_cycle": 1, "duration": 1 }}'
        payload_off: '{"warning": {"mode": "stop"}}'
        state_on: "ON"
        state_off: "OFF"
        icon: mdi:alarm-light
        qos: 1
        optimistic: true
        retain: true