Hi Marianne,
i’m not sure, how the binding will handle ON and OFF.
The homematic documentation shows the following for the LEVEL channel.
LEVEL is from type FLOAT an has a range from 0.0 to 1.0. So the binding has to translate ON/OFF to 0.0 or 1.0. I’m not sure, if this done in the binding for this device. For dimmers, like HM-LC-Dim1TPBU-FM this will work. I can’t tell you why, maybe someone could explain it.
I think you have to do a workaround like the following:
homematic.items
Rollershutter rWintergarten_Fenster
"Rollladen Kippfenster"
{channel="homematic:HM-LC-Bl1PBU-FM:ccu2:NEQ1561998:1#LEVEL"}
Switch sWintergarten_Fenster
"Rollladen Kippfenster Schalter"
homematic.sitemap
Frame label="Rolladen" {
Switch item=sWintergarten_Fenster mappings=[ON="Öffnen (↑)", OFF="Schließen (↓)"]
}
homematic.rules
rule "Rolladen öffnen"
when
Item sWintergarten_Fenster received command ON
then
sendCommand(rWintergarten_Fenster, 0)
end
rule "Rolladen schließen"
when
Item sWintergarten_Fenster received command OFF
then
sendCommand(rWintergarten_Fenster, 100)
end
As mentioned in the answer before, the implementation of some commands is not straightforward.
I have a lot of dimmers (HM-LC-Dim1TPBU-FM) installed, where the LEVEL channel understands ON and OFF sent as command. Also 0 switches off, and 100 switches on the light. That’s a bit weird. But I think, the dimmer item will handle this,
(https://docs.openhab.org/configuration/items.html) as the dimmer item will accept OnOff, IncreaseDecrease and Percent as possible values.
Otherwise you could try the offical commands from the rollershutter item, as mentioned here:
Possible commands are “UpDown, StopMove, Percent”. So try the following on your sitemap, maybee it works as expected.
homematic.sitemap
Frame label="Rolladen" {
Switch item=rWintergarten_Fenster mappings=[Up="Öffnen (↑)", Down="Schließen (↓)"]
}