Dilbert66 / esphome-vistaECP

This is an implementation of an ESPHOME custom component and ESP Library to interface directly to a Safewatch/Honeywell/Ademco Vista 15/20 alarm system using the ECP interface and very inexpensive ESP8266/ESP32 modules .
GNU Lesser General Public License v2.1
124 stars 21 forks source link

Motion sensors not updating #119

Closed johnboiles closed 7 months ago

johnboiles commented 7 months ago

Thank you for this project! I've only set up a read-only circuit on the bus (awaiting delivery of opto-isolators), but reading the status of nearly everything worked flawlessly out of the box for me.

The one thing that didn't work is my motion sensors. My door sensors and glass break sensors show up and correctly update state but my motion sensors do not. My ADT Pulse app and the documentation written both confirm the zone numbers for my motion sensors, so I'm nearly-certain I have the correct zone numbers.

What can I try next to figure out why my motion sensors aren't getting updated in HA? I see lots of debug messages in the logs like this:

[13:10:28][E][CMD:843]: 1969-12-31 16:58  F8 59 00 00 00 00 00 00 00 00 00 00 90 
[13:10:28][E][EXT:843]: 1969-12-31 16:58  F9 00 19 04 7A 02 00 67 00 00 00 00 00 
[13:10:28][E][CMD:843]: 1969-12-31 16:58  19 00 00 00 00 00 00 00 00 00 00 00 90 

But i'm not sure how to decode those.

What should I check next?

johnboiles commented 7 months ago

I dove deeper and figured it out. Everything else worked out of the box but the motion sensors need valid entries in rfseriallookup. So I watched the logs while triggering the motion sensors and saw logs like this:

# [14:05:06][E][info:1113]: RFX: 0339857,00

So I added entries into rfseriallookup like this:

  rfseriallookup: "0339857:1:15

Making sure to have the last number match my expected zone id for the motion sensor in question.

I am seeing a separate possible issue where the motion sensor only triggers for a few seconds even if there's sustained motion. I'll open a separate issue for that.