Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for Dimmer switches #20

Merged
merged 1 commit into from
Jan 19, 2025

Conversation

remiserriere
Copy link
Contributor

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&param=udevice&idx=IDX&nvalue=[0,1,2]&svalue=LEVELNR Statuses for Blinds Percentage when using &param=udevice:
Closed: nValue = 1 and sValue = 100
partially opened: nValue = 2 and sValue = 1-99
Open: nValue = 0 and sValue = 0

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
@FlyingDomotic FlyingDomotic merged commit 0af736c into FlyingDomotic:main Jan 19, 2025
@FlyingDomotic
Copy link
Owner

Thanks for the fix !

@remiserriere remiserriere deleted the patch-1 branch January 19, 2025 23:02
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants