MQTT Alarm State not updating in HA

Good day all.

I’ve setup a Sonoff SV to control my very old Paradox alarm system in a very unSmart like manner by basically just being an additional remote that is meant to be state aware.

Now the problem comes in that my State Topic simply doesn’t update in HA.

I’m using the PGM into the built-in Alarm Relay to report the state of the alarm as either disarmed or armed_away and this I can see updating in Tasmota and via MQTT as per below when using a separate remote to arm the alarm.

10:00:54 MQT: cmnd/alarmstate/POWER2 = armed_away (retained)

cmnd/alarmstate/POWER2 armed_away

However in HA with the following configuration this just doesn’t seem to update at all?

  • platform: manual_mqtt
    name: Alarm
    state_topic: “cmnd/alarmstate/POWER2”
    command_topic: “cmnd/alarm/POWER”
    payload_arm_away: “ON”
    payload_disarm: “ON”
    availability_topic: “tele/alarm/LWT”
    payload_available: “Online”
    payload_not_available: “Offline”
    optimistic: false

What am I missing here? My Front Gate and Garage Door Opener are setup in much the same way and work perfectly without issue, they just use the Cover component instead.

I am just a muppet and didn’t realise there were both an MQTT Alarm Component and a Manual Alarm with MQTT component and seemingly half integrated both of them which meant it didn’t working.

Fixing that sorted the problem out.

  • platform: mqtt
    name: Alarm
    state_topic: “cmnd/alarmstate/POWER2”
    command_topic: “cmnd/alarm/POWER”
    payload_arm_away: “ON”
    payload_disarm: “ON”
    availability_topic: “tele/alarm/LWT”
    payload_available: “Online”
    payload_not_available: “Offline”
    optimistic: false
    retain: true