Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added support for Dimmer switches (Type 244 / SwitchType 7), nValue depends on sValue.
Link to Domoticz doc: https://wiki.domoticz.com/Domoticz_API/JSON_URL%27s#Set_a_dimmable_light/selector_to_a_certain_level
dimmable:
Some lights have 100 dim levels (like zwave and others), other hardware (kaku/lightwaverf) have other ranges like 16/32
Level should be the dim level (not percentage), like 0-16 or 0-100 depending on the hardware used
When the light is off, it will be turned on
Blinds: enter percentage, level will be 0-100
Selector switch: enter the level number (eg 10, 20 or 30) that can be found in the edit section of a switch.
To update in Domoticz only without running it's device actions use /json.htm?type=command¶m=udevice&idx=IDX&nvalue=[0,1,2]&svalue=LEVELNR Statuses for Blinds Percentage when using ¶m=udevice:
Closed: nValue = 1 and sValue = 100
partially opened: nValue = 2 and sValue = 1-99
Open: nValue = 0 and sValue = 0