i need to know what the values are for “_burglar” & “_alarm_level” for both conditions when the devices are triggered and not triggered (idle not detecting motion).
I think the easiest thing to do right now is to just create a new binary sensor with the entities that are actually changing when you trigger the device. Once we get the device to a state that you can actually use it in automations or see it working in the frontend then if you want to try further to get the binary sensor created by the device working that can be an option.
So if you can give me the values triggered and not-triggered then I can help you create a sensor you can use right now.
Thanks for the trust in me to offer to use Teamviewer but I think we can get you running without it for now.
Hi again Finity,
detector burglar when the devices are triggered is 8 without 0 (only one that changes when the devices are triggered)
the others alarm_level happens nothing triggered 0 without 0
that will show “Detected” when the sensor triggers and “Clear” when there is no motion.
You can modify the details in the code as you see fit but at least try it the way I have it written first just to make sure I didn’t screw something up.
At least that will get you to a point that you can use the binary sensor that this creates to trigger an automation or whatever you want to use it for.
let me know if you have any troubles with the code above.
you need to put the code above in the section for your binary_sensor’s not in your automation.yaml.
if you already have a binary_sensor: section in your configuration.yaml section add the code above to it but remove the first line (the “binary_sensor:” part). If you don’t already have a binary_sensor: section then just copy the whole thing into your configuration.yaml file.
Hi again Finity,
I try to figure out how the templating works but it is difficult to understand how to works. Has read Template sensor but it is difficult.
How to configure templete sensor to trigger my switches. have tried a bit with HA Templates its correct?