Skip to content

Commit

Permalink
0.9.6.7 - Panel Tamper bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davesmeghead committed Jul 28, 2024
1 parent 8377f3e commit d212767
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion custom_components/visonic/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
# "trigger",
#]

CLIENT_VERSION = "0.9.6.6"
CLIENT_VERSION = "0.9.6.7"

MAX_CLIENT_LOG_ENTRIES = 300

Expand Down
2 changes: 1 addition & 1 deletion custom_components/visonic/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"loggers": ["visonic"],
"requirements": ["Pillow", "pyserial_asyncio"],
"single_config_entry": false,
"version": "0.9.6.6"
"version": "0.9.6.7"
}
11 changes: 6 additions & 5 deletions custom_components/visonic/pyvisonic.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def convertByteArray(s) -> bytearray:
from pyhelper import (MyChecksumCalc, AlImageManager, ImageRecord, titlecase, pmPanelTroubleType_t, pmPanelAlarmType_t, AlPanelInterfaceHelper,
AlSensorDeviceHelper, AlSwitchDeviceHelper)

PLUGIN_VERSION = "1.3.5.0"
PLUGIN_VERSION = "1.3.5.1"

# Some constants to help readability of the code

Expand Down Expand Up @@ -4179,9 +4179,9 @@ def handle_msgtypeA7(self, data):

self.PanelTamper = PanelTamper
# reset=False
if PanelTamper:
log.debug("[handle_msgtypeA7] ******************** Tamper Triggered *******************")
self.sendPanelUpdate(AlCondition.PANEL_TAMPER_ALARM) # push changes through to the host to get it to update, tamper is active!
#if PanelTamper:
# log.debug("[handle_msgtypeA7] ******************** Tamper Triggered *******************")
# self.sendPanelUpdate(AlCondition.PANEL_TAMPER_ALARM) # push changes through to the host to get it to update, tamper is active!


# pmHandlePowerlink (0xAB)
Expand Down Expand Up @@ -4667,7 +4667,8 @@ def handle_msgtypeB0(self, data): # PowerMaster Message
# Zone Last Event
# PM10: With a PM10 I'm not sure that we'll get this message but I assume that we do and not the other one.
# PM30: I think that this represents sensors Z37 to Z64. Each sensor is 5 bytes.
# For the PM30 with 64 sensors this comes out as 140 / 5 = 28
# For the PM10 with 30 sensors this comes out as 150 / 5 = 30
# For the PM30 with 64 sensors this comes out as 140 / 5 = 28 (64-36=28)
sensortotalbytes = int(data[6])
if sensortotalbytes % 5 == 0: # Divisible by 5, each sensors data is 5 bytes
if self.beezero_024B_sensorcount is not None:
Expand Down

0 comments on commit d212767

Please sign in to comment.