Closed ufodone closed 1 year ago
@hunstad Thanks for the testing. There appears to be a few different issues here.
For sequence two, I'm not sure I'm quite following your sequence.
added envisalink_new restarted HA it did not pick up my existing configuration I did get a message: "Retrying setup: Unrecognized/undetermined panel type at nnn.nnn.n.12:4025" (I masked the IP) manually configured envisalink_new removed include statement for envisalink in my configuration.yaml
On the initial restart, did you still have the envisalink
section in your configuration.yaml? Did you also have envisalink_new
? You definitely want to be sure to never have two configurations for the same EVL device at the same time. The EVLs only accept a single connection simultaneously so multiple configs for the same device can cause problems. I'm wondering whether the initial Unrecognized...
message was due to the original envisalink
integration already having created that connection. Those errors in the log file about the server closing the connection could also point to that.
Regarding the zone flapping issues, are you able to provide debug logs of the issue occuring? It's possibly related to the new algorithm introduced for Honeywell panels. I don't have a Honeywell panel myself so it's difficult for me to reproduce myself.
Like the original Envisalink integration, my logfile is flooded with state changes from the keypad:
I've heard others having this issue. I suspect this is due to the honeywell panels cycling through the faulted zones, etc. and sending updates for each one. I'm not sure what the right answer is here as I assume reflecting the keypad text in HA is valuable. I believe others have used the exclude
feature in either the history
or recorder
integrations to suppress these updates being written to the DB.
re: initial config. I probably missed a step leading to the errors.
re: Regarding the zone flapping issues. I'll try to get more detailed logs for you.
re: I've heard others having this issue (log flooding). I do have the same issue with the old envisalink integration. This occurs with the keypad text as well as the individual zones. (for the zones, the last triggered time attribute is changed, but not the zone state). My solution was to create parallel binary.sensor template entities for each zone and keypad entities and use jinga rules to determine when to update. That what I can use the exclude feature for the envisalink entities.
The last_tripped_time
updates on the binary sensors are due to a bug in the integration which I've logged as #29. This is newly introduced with this version of the integration but given how the zone timers used to work on the Honeywell systems, I can imagine how a similar issue could have existed there.
I also tried reproducing the zone flapping with my mock Honeywell EVL tool but didn't have any success so I'd definitely love to get some logs at some point if you're able.
I've pushed a new release which should fix the last_tripped_time
being incorrect and updating needlessly so I'm going to close this issue now.
If you still experience the zone flapping with a large number of zone open and can provide logs, please feel free to open a new issue. Thanks.
``Great work!
Background:
Testing results:
Testing sequence one:
stopped VM for my production HA
shutdown testing VM
Testing sequence two:
Detail of just one of the window entities showing curious progression of invalid "closed" durations:
Clicking on the documentation link in the HA integration page takes you to: "https://www.home-assistant.io/integrations/envisalink_new" and a "Oh no! This page does not exist 😞"
Let me know if you need more details.
_Originally posted by @hunstad in https://github.com/ufodone/envisalink_new/issues/1#issuecomment-1468890962_