Hi all, hope someone can help. I use Shelly relay devices with MQTT integration. I have set most of these up using YAML I have copy pasted and modified!
I now have a Shelly Smoke detector and want to configure it with YAML but I’m struggling! I have successfully set up HA to receive messages via MQTT and I know the topic that contains the message of interest.
All I want to be able to is trigger a notification in the HA App when an Alarm message is received but not sure how the YAML needs to be written to achieve this.
Would anyone be able to advise what this should look like or have an example of Shelly Smoke YAML config please? Thanks!
The JSON message I am trying to parse looks like this… I want to trigger notifications where the value received = true (just testing the setup for now)
The message above is generated when I wake the alarm. I am using that to setup and test what I want to achieve so I don’t have to keep setting the smoke alarm off with small fires!
The actual alarm message I will need to work with later is this…
I am still struggling and no closer to figuring out what I am doing wrong
I can see messages are being received on Mosquito Broker when I trigger the alarm. I have run the automation manually from the UI and an app notification appears on my phone.
It seems like the payload is not being processed properly in order to trigger the automation.
Any help at all would be appreciated!
This is the topic and json message I want to trigger from (I am using false for now so I don’t have to set the alarm off to test it) …
Hi, I have a similar problem. I have exactly the same YAML configuration as you (just payload_off in addition). When I display the entity, I always have “unknown” as the status, although “alarm” is clearly visible as “false” in the MQTT Explorer. Does the correct status appear for you when you check the “Smoke_Alarm” entity?