Hi,
I have an openHAB 2 system up an running since several years but now added my first Fibaro Dimmer 2.
In the docs I can only see item types of Dimmer and no Switch for ON/OFF commands
https://www.openhab.org/addons/bindings/zwave/thing.html?manufacturer=fibaro&file=fgd212_3_5.html
Do you have some example that you can share for item configurations for Fibaro Dimmer 2 controlling ON/OFF and Dimming?
The dimmer should work with ON/OFF, percent (0-100), or increase or decrease
1 Like
vzorglub
(Vincent Regaud)
December 9, 2019, 7:09pm
3
So if I have added in items conf file:
Dimmer HemmabioDimmer "Hemmabio Dimmer" (gCellar) {channel="zwave:device:aa3c9940:node25:switch_dimmer1"}
How can I add an ON/OFF switch in sitemaps?
vzorglub
(Vincent Regaud)
December 9, 2019, 8:35pm
5
Simple as that:
Switch item=HemmabioDimmer
1 Like
Thanks @vzorglub , very much appreciated
Then I get a slider with the dimmer level - which is good for other cases
Since the dimmer remember the last dimmer level and if I press the physical button (s1) I get the light ON/OFF with the previous dimmer level.
How can I get a simple ON/OFF button (and rule command) to turn on the lights with the previous dimmer level?
vzorglub
(Vincent Regaud)
December 9, 2019, 9:15pm
7
With a proxy item and a rule
1 Like
Hmmm need to check out “proxy item”… if something like [SOLVED] ON/OFF value to Dimmer type?
This will help
Please see Design Pattern: What is a Design Pattern and How Do I Use Them for information on what a DP is and how to use them.
Problem Statement
Often one faces one or more of the following situations:
the need to perform additional logic before sending a command to a device
the need to send a command to multiple devices based on a single event
the need to do something different based on the state of one or more other Items
the channel to update the state of an Item and the channel to send c…
1 Like
For some reason I now got a ON/OFF button in UI using
Switch item=HemmabioDimmer
Thanks, very nice. Didn’t know about Proxy items and seems very useful
vzorglub
(Vincent Regaud)
December 10, 2019, 6:29pm
12
Just as I told you 5 posts above…
vzorglub
(Vincent Regaud)
December 10, 2019, 6:29pm
13
Could you mark the tread as solved by ticking the solution post. Thanks
Correct, therefore I replied to your post.
I have already clicked your post as solution
is that not what you wanted?
@Andrew_Rowe Absolutely but for some reason when tested yesterday I got a slider instead of a switch. Today when testing again it worked as I wanted.
Then I find Proxy Items to be useful in other scenarios.
Thanks for the help @Andrew_Rowe and @vzorglub
1 Like