Hi All,
Got a weird one here, For ages I had 1 Pi Zero for my Retic controller with 8 Relay’s connected using Webhooks and other Pi for my Alarm system system using Webhooks. Well today I converted my Retic controller to MQTT and disabled the Webhooks version.
When I turn on one of the relays for the retic it triggers one of the PIR Sensors goes on and then off
I’m not near the house to confirm if it’s actually turning the sensor physically on and off but I get a notification in HA saying e.g. backdoor open and then close. This is bulk confusing. Sorry for the poor grammar.
Example code of the Alarm in my config.yaml
- trigger:
- platform: webhook
webhook_id: security_webhook
allowed_methods:
- POST
- PUT
- GET
local_only: false
sensor:
- name: "Security_Inputs"
state: "{{ trigger.json.security_inputs }}"
- binary_sensor:
- name: "Security_PIR_Hallway"
state: "{{ states('sensor.Security_Inputs') | int | bitwise_and(1) }}"
- binary_sensor:
- name: "Security_PIR_Lounge"
state: "{{ states('sensor.Security_Inputs') | int | bitwise_and(2) }}"
Note: They share the same power source, It’s connected to my custom isolated 600w solar panels with battery system and with a 2x 12v 2.2amp USB charger. They both have 1 each and they are not located near each other. The MPPT charger is a Victron MPPT 75/15 with 2x 12v 60ah batteries in parallel = 1.4kw/h (Very overkill) This system powers 5 other Pi’s and an iPad wall control for aircon.
NBB: Battery lasts 4 days without sun as tested with my remote solar isolator switch.
Thanks
Daniel