Hi! I have a question regarding ESPHome triggering an automation. This is my first ESPHome project so I’m a novice. I have a doggy door that also has a physical button I can press to open it, so naturally I threw on a Zigbee button pusher (fingerbot) to push the button. Now to trigger this I have set up 2 pressure mats via ESPHome (one outside and one inside). I also set up a zigbee button (mainly just to test it myself).
Now the problem I am having is the outdoor mat works great. The mat senses pressure, and the automation gets triggered and the door opens. However, the indoor one (which has the same code) does not, which is strange as it previously did work just fine.
I’ve tried restarting Home Assistant, deleting the automation and writing it again, updating the ESPHome device with the most recent software, but it refuses to trigger. I’ve also used the indoor mat in other automations to test if it would trigger and it does not. I’ve checked the ESPhome Logs and the device is registering “On/Off” (see pictured below) but for some reason Home Assistant is not picking it up to use in automations.
I’ve copied below my automation code, if it helps at all. Any help on how to resolve this would be greatly appreciated! Thank you in advance.
alias: Open Doggy Door Via Mat (Button)
description: ""
trigger:
- device_id: 0x0x0x0x0x0x0x0x0x
domain: zha
platform: device
type: remote_button_short_press
subtype: remote_button_short_press
- type: turned_on
platform: device
device_id: 0x0x0x0x0x0x0x0x0x
entity_id: binary_sensor.doggy_door_pressure_mat_outside
domain: binary_sensor
- type: turned_on
platform: device
device_id: 0x0x0x0x0x0x0x0x0x
entity_id: binary_sensor.doggy_door_pressure_mat
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 2
condition:
- condition: state
entity_id: input_boolean.doggy_door
state: "on"
- condition: state
entity_id: input_boolean.doggy_door_wifi
state: "off"
- condition: state
entity_id: timer.doggy_door_timer
state: idle
enabled: false
action:
- type: toggle
device_id: 0x0x0x0x0x0x0x0x0x
entity_id: switch.switch
domain: switch
- service: light.turn_on
data:
rgb_color:
- 255
- 43
- 5
target:
device_id: 0x0x0x0x0x0x0x0x0x
mode: single