Can you share how you did this please
I have sent up a icmp/ping sensor between the HA instance and the ESP8266 device in the alarm sensor. I have an automation set up that when the icmp sensor goes from off to on which indicates there is network comms between HA and the alarm panel I reload the integration config using one of the service calls.
I also have a separate automation that will reset one of my routers when a number of sensors indicate there is a wider local network issue (that one isn’t specific to this integration though).
Hi all, hi Dave,
Dave thanks a lot for this awesome job, i’ve been struggeling for a few evenings to get it working but it’s now up and running.
I have my Powermaster 10 system connected through a USR-TCP232-E2, it’s in powerlink mode.
I would like to see if i can use my Next PG2 sensors to switch some lighting, but unfortunatly this is not working properly.
I see detections from my sensors entering HA once every minute, for example: in HA all detections occur at x minutes and 13 seconds…
While the detections are instantly visible in my Powermaster display, i have to wait for the next x minute:13 to see it in HA.
Can others confirm this is normal behaviour?
I have the switch off detection parameter set at 120 seconds, because i have read that this is the minimum time before these sensors allow a new detection.
Hi,
I’m pleased that you’re able to get it working.
That seems to be very precise every time, is it exactly the same every time?
Have you done this on the wiki and changed the panel settings as you have a Powermaster panel.
This time is very much dependant on the panel type, try setting it to 10 or 20 seconds and see what happens. This is only the time in which the Integration will not repeat a detection from the same sensor so set it to whatever you like and experiment with it. You can change this value in the integration without reinstalling so it should be easy to try a few different values.
Lastly, if you still have problems then create a log file and upload to pastebin/dropbox and I’ll take a look through.
EDIT: I’ve had another thought. If you have HA on your phone/laptop/tablet you can look at the HA Events like this and walk around your house triggering the various sensors, you should see HA Events for them.
Yes the exact same second, like there is some kind of polling interval set somewhere.
I have configured the pir’s to work even when the panel is not armed.
Have done this, this time set it to 20 seconds, it is working, the sensor reports back after 20 seconds that there is no detection any more.
But still a new detection is reported to HA as early as the next x minute and y seconds.
So once every minute now, but still precisely on the same second as the previous detections that were logged.
I did some listening to the events, and here also only once every minute on the same second.
I have made a debug log it contains some pir detections: https://pastebin.com/sSpTy6yW
Would be great if you want to have a look!
Here a visual explanation of the thing I am trying to describe.
You can see the detections appear in HA every time on the same second.
All these detections were made 10 to 30 seconds before they appear in HA.
I’ve been using the integration for a while now and generally it is working great, just one minor ‘niggle’:
Every 15 minutes (give or take 1 second) I get the following in the log:
2023-02-28 16:50:29.509 ERROR (MainThread) [custom_components.visonic.pyvisonic] ERROR Connection Lost : disconnected because the Ethernet/USB connection was externally terminated.
2023-02-28 16:50:29.514 ERROR (MainThread) [custom_components.visonic.pyvisonic] ERROR Connection Lost : disconnected because of close/abort.
2023-02-28 16:50:29.521 WARNING (MainThread) [homeassistant.util.async_] Detected blocking call to sleep inside the event loop. This is causing stability issues. Please report issue to the custom integration author for visonic doing blocking calls at custom_components/visonic/pyvisonic.py, line 1512: sleep(5.0) # a bit of time for the watchdog timers and keep alive loops to self terminate
2023-02-28 16:50:34.530 ERROR (MainThread) [custom_components.visonic.pyvisonic] Calling Exception handler.
2023-02-28 16:50:36.087 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry Panel 0 (PowerMax Complete Part) for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 533, in async_unload
result = await component.async_unload_entry(hass, self)
File "/usr/src/homeassistant/homeassistant/components/switch/__init__.py", line 89, in async_unload_entry
return await component.async_unload_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 181, in async_unload_entry
raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!
All the devices become ‘Unavailable’ for about 15 secs and then resume reporting…any ideas?
It looks like something (external to Home Assistant) is breaking the connection between the panel and the Integraion and the Integration reconnects. I’m sorry but I don’t know the reason, it’s in your network setup somewhere.
I do see what you mean and I can re-create it with my PowerMaster Panel that I use for testing. I had a quick look over the weekend and couldn’t work out why it is happening. Let me look properly and I’ll report back…
Hmm, its strange as it happens every 15 minutes (give or take 1 second) and doesn’t happen with any of our other wifi devices which connect to HA from the same network. Is there anything in the integration that happens every 15 minutes?
Thanks a lot Dave,
Good to hear that it can be reproduced, I appreciate the effort you are putting in!
Hi Dave,
A small update on my side, strange things happen, this weekend the sensors were working better, not reporting at the same second anymore, but just as soon as they happen.
But unfortunatly this has nog continued to work, right now i don’t see any detections anymore even after a restart of HA.
I noticed the panel mode changed from powerlink to standard plus and then to problem and after a few more seconds back to powerlink.
Also in the systems log i see this error message: Valid 4 digit pin not found
My case looks pretty similar to this one Powermaster 30 PIR motion · Issue #72 · davesmeghead/visonic · GitHub from pbathuk
I hope this helps a bit in solving the problems, please let me know if i can be of any help with that.
The first line that you showed me was the disconnection, perhaps if you show me more of the log file i might get more of a clue but apart from that there’s nothing that I know of runs every 15 minutes.
EDIT: Having said that, the first line clearly shows that something external to the integration and probably external to home assistant broke the TCP connection between the panel and HA. I say probably external to HA because you may have a different integration in HA that causes my integration to have the connection disconnected.
This must be something to do with the detectors I think.
Just a few quotes from
- It’s not uncommon for wireless PIR devices to sleep for 3 mins or so after activation, whether system is armed or not.
- Not uncommon for visionic lenses to start to break down due to age.The lens seems to make the sensors become very poor on movement pick up.
- Petwise sensors are not something we recommend full stop the design is to stop picking up below a certain height.
I must admit that after a bit of testing here I only have problems with PIRs that are registered as Zones 33 to 64. Magnetic sensors in Zones 33 to 64 are OK, it’s just PIRs that don’t come through. I do not get message PDU updates from the panel for these and I’m looking in to the special “B0” messages as these may be a way forward.
This means that something is wrong with your setup or the integration, can you send me a full log file please and I’ll take a more detailed look. That may be the cause of your problems.
I know about the limitations regarding the pir’s, but they are registering a zone violation on the powermax panel as soon as i trigger them.
I think that it is best to first see what is wrong with my integration indeed, here is a new paste of the full log: 123456 - Pastebin.com
Would be great if you want to have a look.
Just had a quick look as I’m on my way to bed, can you turn off B0 Processing in the Configuration please (on the integration click Configure and untick B0 processing on the last panel). It seems that your panel isn’t responding to every request and it’s causing some messages to timeout. After you’ve turned off B0 processing then please upload another log file.
That looks OK to me, it’s a normal startup sequence in the log file.
So what happens now? That log file includes a PIR detection.
Thanks.
Still weird behaviour unfortunately, HA did see 2 pir detections, but after that no new detections were visible in HA, the powermax panel does detect them however.
I made another log (after restarting HA) This time only one pir detection was made at 16:01:48
It is visible in the log.
After that various pir detections were made (and were visible on the powermax panel) but nothing in the log.
I ended with opening a door contact at 16:20:56 wich was instantly visible in the log and also in HA.
Unfortunately i cannot pastebin this last log, it’s too large, lol
What to do… replace battery’s of the pir’s?
Hi Niels
I have same set up as yours and get same faults as you are experiencing with sensors and panel randomly not available. I have to restart home assitant to get working. Did you find any solution to your issue you could share
Thanks Terry