Skip to content

Commit

Permalink
Some time the Boolean can come with a different value than 0x00 or 0x…
Browse files Browse the repository at this point in the history
…01 (like 0xf0)
  • Loading branch information
pipiche38 committed Sep 16, 2024
1 parent bc0a4c4 commit 2667932
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modules/domoMaj.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,8 @@ def _domo_maj_one_cluster_type_entry( self, Devices, NwkId, Ep, device_id_ieee,
# Called with ClusterId: 0x0006 but we have to update a Dimmer, so we need to keep the level
self.log.logging( "Widget", "Debug", "------> Dimmable blind", NwkId, )

nValue = int(value)

nValue = int(value, 16)
sValue = prev_sValue
if switchType in (13, 16):
# Correct for Blinds where we have to display %
Expand Down

0 comments on commit 2667932

Please sign in to comment.