Skip to content

Commit

Permalink
log cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Nov 30, 2023
1 parent 3f01f4d commit 14d368e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Modules/domoMaj.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def MajDomoDevice(self, Devices, NWKID, Ep, clusterID, value, Attribute_="", Col
# will increment the counter value by 1.
# To reset an incremental counter, set the svalue to a negative integer equal to the current total of the counter.
sValue = "%s" %value
self.log.logging("Widget", "Log", "WaterCounter ------> : %s" %sValue, NWKID)
self.log.logging("Widget", "Debug", "WaterCounter ------> : %s" %sValue, NWKID)
UpdateDevice_v2(self, Devices, DeviceUnit, 0, sValue, BatteryLevel, SignalLevel, ForceUpdate_=True)

if "Voltage" in ClusterType: # Volts
Expand All @@ -465,7 +465,7 @@ def MajDomoDevice(self, Devices, NWKID, Ep, clusterID, value, Attribute_="", Col
# Normalize SetPoint value with 2 digits
nValue = 0
sValue = str_round(float(setpoint), 2) # 2 decimals
self.log.logging("Widget", "Log", "------> Thermostat nValue: %s SetPoint: %s sValue: %s" % (
self.log.logging("Widget", "Debug", "------> Thermostat nValue: %s SetPoint: %s sValue: %s" % (
0, setpoint, sValue), NWKID)
UpdateDevice_v2(self, Devices, DeviceUnit, 0, sValue, BatteryLevel, SignalLevel)

Expand Down Expand Up @@ -678,7 +678,7 @@ def MajDomoDevice(self, Devices, NWKID, Ep, clusterID, value, Attribute_="", Col

if int(value) in mode_mapping:
nValue, sValue = mode_mapping[int(value)]
self.log.logging("Widget", "Log", f"------> Thermostat Mode 3 {value} {nValue}:{sValue}", NWKID)
self.log.logging("Widget", "Debug", f"------> Thermostat Mode 3 {value} {nValue}:{sValue}", NWKID)
UpdateDevice_v2(self, Devices, DeviceUnit, nValue, sValue, BatteryLevel, SignalLevel)
else:
# Unknown value
Expand Down
2 changes: 1 addition & 1 deletion Modules/domoticzAbstractLayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def domo_update_api(self, Devices, DeviceID_, Unit_, nValue, sValue, SignalLevel
TimedOut (int, optional): Timeoud flag 0 to unset the Timeout. Defaults to None.
Color (str, optional): Color . Defaults to "".
"""
self.log.logging("AbstractDz", "Log", "domo_update_api: DeviceID_ : %s Unit_: %s nValue: %s sValue: %s SignalLevel: %s BatteryLevel: %s TimedOut: %s Color: %s : %s" %(
self.log.logging("AbstractDz", "Debug", "domo_update_api: DeviceID_ : %s Unit_: %s nValue: %s sValue: %s SignalLevel: %s BatteryLevel: %s TimedOut: %s Color: %s : %s" %(
DeviceID_, Unit_, nValue, sValue, SignalLevel, BatteryLevel, TimedOut, Color, Options))

if DOMOTICZ_EXTENDED_API:
Expand Down

0 comments on commit 14d368e

Please sign in to comment.