You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I noticed that I could set the dimmers of lights to a value of 1 (out of 254). This causes the plugin to round the dim level to 0 and thus making Domoticz think they are switched off.
Changing the dimmer section in plugin.py to this fixes the problem:
# Dimmerifikea_device.LevelisnotNone:
ifoverride_levelisNone:
# The remote can make the dimmer value 1 (out of 254) resulting in 0 as level.level_number=int(round_half_up(ikea_device.Level/2.54)) or1level=str(level_number)
else:
level=override_levelif (Devices[Unit].nValue!=ikea_device.State) or (
Devices[Unit].sValue!=str(level)
):
Devices[Unit].Update(
nValue=2ifikea_device.Stateelse0, sValue=str(level)
)
The text was updated successfully, but these errors were encountered:
basrieter
changed the title
Setting a dimlevel of 1% causes domoticz to show the lights as "off"
Setting a dimlevel of 1 (out of 254) causes domoticz to show the lights as "off"
Jan 27, 2024
Recently I noticed that I could set the dimmers of lights to a value of 1 (out of 254). This causes the plugin to round the dim level to 0 and thus making Domoticz think they are switched off.
Changing the dimmer section in
plugin.py
to this fixes the problem:The text was updated successfully, but these errors were encountered: