davesmeghead / visonic

Visonic Custom Component for integration with Home Assistant
Apache License 2.0
92 stars 20 forks source link

Incorrect model and sensor type #94

Closed rogerthn2019 closed 1 year ago

rogerthn2019 commented 1 year ago

Let's start with THANKS!

I've my old Powermax Pro connected to an Asus Tinker Board S running DietPi v8.21.1 (bookworm). My Home Assistant Core 2023.8.1 is running on Raspberry Pi 4 Model B Rev 1.4 (bullseye). The DietPi have ser2net running and Visonic Intruder Alarm is added OK, but? Added devices can be seen below. image Z01 and Z02 are both MCT-302, the Sensor type for Z02 says Motion while Z01 says Magnet. Z03, Z04 and Z05 are all Next K9-85. Smoke detector Z06 is OK.

Any hints?

davesmeghead commented 1 year ago

Hi, Thanks for the info. You have 2 choices ....

  1. Set your logger settings to debug as per the wiki here and post the sensor settings from the log file, here are my settings as an example

    [Process Settings] Processing settings - panel code index 0447
    [Process Settings]      Z01 :  VisonicSensorRef=0XE4   zoneInfo=0XC   ZTypeName=Interior   Chime=Off   SensorType=motion   zoneName=Kitchen
    [Process Settings]      Z02 :  VisonicSensorRef=0XE4   zoneInfo=0XC   ZTypeName=Interior   Chime=Off   SensorType=motion   zoneName=Living room
    [Process Settings]      Z03 :  VisonicSensorRef=0XD3   zoneInfo=0XC   ZTypeName=Interior   Chime=Off   SensorType=motion   zoneName=Upstairs
    [Process Settings]      Z04 :  VisonicSensorRef=0X95   zoneInfo=0X7   ZTypeName=Perimeter   Chime=Off   SensorType=magnet   zoneName=Kitchen
    [Process Settings]      Z05 :  VisonicSensorRef=0X96   zoneInfo=0X7   ZTypeName=Perimeter   Chime=Off   SensorType=magnet   zoneName=Conservatory
    [Process Settings]      Z06 :  VisonicSensorRef=0X96   zoneInfo=0X7   ZTypeName=Perimeter   Chime=Off   SensorType=magnet   zoneName=Garage
    [Process Settings]      Z07 :  VisonicSensorRef=0X96   zoneInfo=0X7   ZTypeName=Perimeter   Chime=Off   SensorType=magnet   zoneName=Bathroom
    [Process Settings]      Z29 :  VisonicSensorRef=0XFF   zoneInfo=0X14   ZTypeName=Delay 1   Chime=Melody   SensorType=wired   zoneName=Hall

    By doing this you give me the chance to look further in to this and perhaps fix it for other users.

  2. Override the settings in HA that I have set. You can do this as per this issue. As well as overriding the friendly_name you can set the device type and other parameters. You may be ably to do this in the HA UI now as well. The info you would need is here.

My preference is option 1 as I may be able to recognise unknown sensors (Z03, Z04, Z05) so other users can benefit but it's up to you. I could also look at the settings where there's a possible conflict (Z02).

rogerthn2019 commented 1 year ago

Option 1 selected ;-) grep 'Process Settings' home-assistant.log | awk -F "pyvisonic] " '{print $2}'

[Process Settings] Process Settings from EPROM
[Process Settings] pmPanelTypeNr 2 (2)    model PowerMax Pro
[Process Settings] Processing settings information
[Process Settings] Processing settings - panel code index 0216
[Process Settings]      Z01 :  VisonicSensorRef=0X96   zoneInfo=0X8   ZTypeName=Perimeter-Follow   Chime=Off   SensorType=Magnet   zoneName=Front door
[Process Settings]      Z02 :  VisonicSensorRef=0X75   zoneInfo=0X7   ZTypeName=Perimeter   Chime=Off   SensorType=Motion   zoneName=Custom 2
[Process Settings]      Z03 :  VisonicSensorRef=0XD4   zoneInfo=0X6   ZTypeName=Interior-Follow   Chime=Off   SensorType=Motion   zoneName=Custom 3
[Process Settings]      Z04 :  VisonicSensorRef=0XD4   zoneInfo=0X6   ZTypeName=Interior-Follow   Chime=Off   SensorType=Motion   zoneName=Custom 4
[Process Settings]      Z05 :  VisonicSensorRef=0XD4   zoneInfo=0X6   ZTypeName=Interior-Follow   Chime=Off   SensorType=Motion   zoneName=Custom 5
[Process Settings]      Z06 :  VisonicSensorRef=0X9A   zoneInfo=0XB   ZTypeName=Fire   Chime=Off   SensorType=Smoke   zoneName=Fire
[Process Settings] Found an enrolled PowerMax 2-way keypad 0
[Process Settings] Adding zone devices
[Process Settings] Ready for use
[Process Settings] Entering Standard Plus Mode as we got the pin codes from the EPROM

PS Z02 has been replaced and is hence a later MCT-302 version.

davesmeghead commented 1 year ago

If you're able to grab the files from Github I've just done a minor update to include your sensors, they should be correct but if not then let me know.

rogerthn2019 commented 1 year ago

Thanks, will try later today.

rogerthn2019 commented 1 year ago

Looks fine 👍 image grep 'Process Settings' home-assistant.log | awk -F "pyvisonic] " '{print $2}'

[Process Settings] Process Settings from EPROM
[Process Settings] pmPanelTypeNr 2 (2)    model PowerMax Pro
[Process Settings] Processing settings information
[Process Settings] Processing settings - panel code index 0216
[Process Settings]      Z01 :  VisonicSensorRef=0X96   zoneInfo=0X8   ZTypeName=Perimeter-Follow   Chime=Off   SensorType=Magnet   zoneName=Front door
[Process Settings]      Z02 :  VisonicSensorRef=0X75   zoneInfo=0X7   ZTypeName=Perimeter   Chime=Off   SensorType=Magnet   zoneName=Custom 2
[Process Settings]      Z03 :  VisonicSensorRef=0XD4   zoneInfo=0X6   ZTypeName=Interior-Follow   Chime=Off   SensorType=Motion   zoneName=Custom 3
[Process Settings]      Z04 :  VisonicSensorRef=0XD4   zoneInfo=0X6   ZTypeName=Interior-Follow   Chime=Off   SensorType=Motion   zoneName=Custom 4
[Process Settings]      Z05 :  VisonicSensorRef=0XD4   zoneInfo=0X6   ZTypeName=Interior-Follow   Chime=Off   SensorType=Motion   zoneName=Custom 5
[Process Settings]      Z06 :  VisonicSensorRef=0X9A   zoneInfo=0XB   ZTypeName=Fire   Chime=Off   SensorType=Smoke   zoneName=Fire
[Process Settings] Found an enrolled PowerMax 2-way keypad 0
[Process Settings] Adding zone devices
[Process Settings] Ready for use
[Process Settings] Entering Standard Plus Mode as we got the pin codes from the EPROM
rogerthn2019 commented 1 year ago

image Still in "test mode" ;-)