The PIR only messages when its triggered so i have written some automation to publish an off message 5 seconds after trigger. In home assistant the PIR is constantly marked as off and never switches to on. What am i doing wrong?
What does the kitchen pir have to do with the landing pir? What are the automations and sensor code for the kitchen pir? Please use the code blocks are stated in the box above the post
So everything is working as I expect but i’m getting opposite warnings in the error, by that i mean when the kitchen pir gets triggered then the landing one complains.
No matching payload found for entity: Landing PIR with state_topic: tele/sonoff_bridge1/RESULT
I think its because the topic is the same for both and when one gets fired the other complains as it cant find the payload. I can’t avoid this because you can only set one topic on the Sonoff RF bridge.
I think you are correct HA can’t determine who the message is for, I would have thought the tasmota sw would allow for more than one mqtt message channel , the reason that it always stays off is probably related HA can’t know what pir is sending the message. In theory it should work as the payloads are different, if it’s a warning I wouldn’t worry about it, if it’s an error I’m not sure what you can do about it. Have you had a look at Dr.Zzzzs video on the subject https://livetamsu.site/talkvideo/Ega4U1KRlso/sonoff-rf-bridge-w-mqtt-home-assistant ?
Thank you clyra, the solution in that post is far more elegant! Should anyone else read this post i solved it using the above article with the addition of a value template on the sensor to get the correct data segment.
Love the simplicity of this method. But would it work with multiple Sonoff RF 433 Bridges in one home? I have a couple installed to make sure that my house is completely covered.
I don’t see why not, there would be two ways of doing it in my opinion.
Set all of the topics the same for all of the bridges. You may need to protect the code with some conditions to prevent two bridges sending the same message.
Set each bridge to have a different topic and duplicate part of the config.
Needs some testing, let me know how you get on as I’m looking to get a second bridge
Using the web page of Sonoff Bridge I have been able to read the codes generated when I use the remote control of this small security system. They are:
Volume: A759c1
Unarm: A759C2
Arm: A759C4
Start Siren: A759C8
Stop Siren: A759C? (I do not remember but that is not important at this stage. As long as I cannot send message to Sonoff Bridge, stopping the Siren is not needed)
I have configured the “alarm_control_panel” component of Home Assistant and I have written the necessary Automations when any of my sensors (doors, windows or motion) are triggered to send me a notification.
All this works perfectly.
Now I want to trigger the Siren included in this small kit when an intrusion is detected. How can I send the code A759C8 (like if if was issued by the remote control) to trigger the Siren?
Log Details (WARNING)
Sun Dec 29 2019 21:38:28 GMT+0200 (Israel Standard Time)
No matching payload found for entity: doorbell with state topic: tele/sonoff_MSSR1/RESULT. Payload: , with value template Template("{% if value_json.RfReceived.Data == '8C81D2' %}
{{'ON'}}
{% endif %}")