Skip to content

Commit

Permalink
add some log to get a better insights
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Oct 18, 2023
1 parent 15b87e8 commit c2da30e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions Conf/Local-Devices/aeotec-button.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
"Ep":{
"01": {
"0000": "",
"0001": { "Attributes": {
"0041": {
"Name": "Power 0041",
"DataType": "20",
"ActionList": [ "check_store_value" ] }}},
"0001": { "Attributes": { "0041": { "Name": "Power 0041", "DataType": "20", "ActionList": [ "check_store_value" ] }}},
"0003": "",
"0020": "",
"0402": "",
Expand Down
4 changes: 4 additions & 0 deletions Modules/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -3490,8 +3490,12 @@ def Decode8401(self, Devices, MsgData, MsgLQI): # Reception Zone status change
self.log.logging( "Input", "Debug", "MotionViaIASAlarm1 = %s" % (motion_via_IAS_alarm))

ias_alarm1_2_merged = get_device_config_param( self, MsgSrcAddr, "IASAlarmMerge")
self.log.logging( "Input", "Debug", "IASAlarmMerge = %s" % (ias_alarm1_2_merged))

if ias_alarm1_2_merged:
self.log.logging( "Input", "Debug", "IASAlarmMerge alarm1 %s alarm2 %s" % (alarm1, alarm2))
combined_alarm = ( alarm1 << 1 ) | alarm2
self.log.logging( "Input", "Debug", "IASAlarmMerge combined value = %02d" % (combined_alarm))
MajDomoDevice(self, Devices, MsgSrcAddr, MsgEp, "0006", "%02d" % combined_alarm)

elif motion_via_IAS_alarm is not None and motion_via_IAS_alarm == 1:
Expand Down

0 comments on commit c2da30e

Please sign in to comment.