[solved] Rollershutter and dimmer are not recognising On/OFF

Hello everyone, i have a small Problem with my items.
I was running openhab 2.1 for a Long time in combination with hue Emulation to Control a LCN Network via an echo dot. This had been working great until September, suddenly alexa didn´t recognise the devices anymore. I think that was due to the port Change from 8080 to 80. I am not smart enough to port Forward to 80 so i decided to use the Connection from openhab to alexa with openhubcloud instead of the hueemulation. with this Change alexa found all the devices again but on the dimmers and rollershutters i got following Problems:
i can activate them with percentage but i can not activate them with an On / OFF commad, which had been working with the hueemulation Connection. Can you please help me to find a solution to switch the dimmers and rollershutters also with an ON/OFF command? I attached also the items and rules on the specifications below:

  • Platform information:

    • Hardware/ (Windows Servers which is connected via usb to the LNC PCHK (Controller for LCN Network)
    • OS: Windows 10
    • Java Runtime Environment: Vers. 8 (211)
    • openHAB version:2.5 M3
  • Please post configurations (if applicable):

    • Items configuration related to the issue

Dimmer essplatz “Essplatz [%d %%]” [“Lighting”] {lcn="[myhome:OUTPUT_STATUS.0.101.2], [INCREASE:myhome:ADD.0.101.2.5%], [DECREASE:myhome:SUB.0.101.2.5%], [%i:myhome:DIM.0.101.2.%i]"}

Rollershutter rollladen_Fenster1 “Rollladen1” {lcn="[DOWN:myhome:RELAYS.0.101.11------], [UP:myhome:RELAYS.0.101.10------], [STOP:myhome:RELAYS.0.101.0-------]"}
Rollershutter rollladen_fenster1_alexa “Rollladen1” [“Switchable”]

Rule for the rollershutter:
rule “rollladen_fenster1_alexa”
when
Item rollladen_fenster1_alexa received command
then
switch(receivedCommand) {
case 0: rollladen_Fenster1.sendCommand(UP)
case 100: rollladen_Fenster1.sendCommand(DOWN)
case 49: {
rollladen_Fenster1.sendCommand(DOWN)
timer = createTimer(now.plusSeconds(43), [|

			rollladen_Fenster1.sendCommand(UP)
			timer = createTimer(now.plusSeconds(3), [|
				rollladen_Fenster1.sendCommand(STOP)
			])
		])
}
	case 9: {
			rollladen_Fenster1.sendCommand(UP)
			timer = createTimer(now.plusSeconds(3), [|
				rollladen_Fenster1.sendCommand(STOP)
			])
		
		
}
}

end

Thanks for your help

According to the OpenHAB documentation, the Rollershutter Item is not designed to recognoze On/OFF

From

2 Likes

Thanks for the hint but that should have been solved with the rule, and the dimmer isn’t working either.

It would probably be helpful to post a relevant excerpt from your events.log
We don’t know what happens (if anything) in response to your Alexa command, nor what your rules do.

1 Like

attached the Events.log
On Essplatz: when i say switch On/Off it receives the command 100 or 0, but it doesn´t Change the state on the lamp, when i tell alexa to set Essplatz to 70% it also receives the correct command and sets the lamp physically to 70.

2019-11-18 19:00:23.803 [vent.ItemStateChangedEvent] - essplatz changed from 100 to 0
2019-11-18 19:00:31.597 [ome.event.ItemCommandEvent] - Item ‘essplatz’ received command 70
2019-11-18 19:00:31.599 [vent.ItemStateChangedEvent] - essplatz changed from 0 to 70

for the rollershutter i tried on/off which will no work because of the reaseon mentionend above, when i tell alexa to set to 100% she tells mit it is out of range, if i try 99, 50,49, 9 or 10% Nothing happens, if i tell her to set 0% openhab received the command up and physically switched the blind.

2019-11-18 19:03:19.437 [ome.event.ItemCommandEvent] - Item ‘rollladen_fenster5_alexa’ received command 5
2019-11-18 19:03:19.437 [vent.ItemStateChangedEvent] - rollladen_fenster5_alexa changed from 0 to 5
2019-11-18 19:04:46.466 [ome.event.ItemCommandEvent] - Item ‘rollladen_fenster5_alexa’ received command 10
2019-11-18 19:04:46.466 [vent.ItemStateChangedEvent] - rollladen_fenster5_alexa changed from 5 to 10
2019-11-18 19:05:03.765 [ome.event.ItemCommandEvent] - Item ‘rollladen_fenster5_alexa’ received command 59
2019-11-18 19:05:03.765 [vent.ItemStateChangedEvent] - rollladen_fenster5_alexa changed from 10 to 59
2019-11-18 19:05:15.110 [ome.event.ItemCommandEvent] - Item ‘rollladen_fenster5_alexa’ received command 0
2019-11-18 19:05:15.110 [vent.ItemStateChangedEvent] - rollladen_fenster5_alexa changed from 59 to 0
2019-11-18 19:05:15.110 [ome.event.ItemCommandEvent] - Item ‘rollladen_Fenster5’ received command UP

There’s no evidence of that in the events.log excerpt shown. It’s obviously important to know what comes from alexa.
Your Item binding has not been configured to do anything with ON or OFF, for example.

I can see that in your log, but I suspect the new state is coming from autoupdate not your actual device, because it is so fast. Are you hiding the ‘predicted’ messages in your events.log from us?

The hint with the item was not configured to do anything with ON and OFF did the trick.
i changed the item with an ON/OFF command and the dimmer worked.

Also for the rollershutter items i found a solution. With the old openhab Installation 2.1 when i told alexa to set 50% the command which was received by openhab was 49%. With the new openhab Installation 2.5 it receives the exact values. So i just changed the percentages and everything works now as expected (also the hint, that rollershutter don´t accept ON / OFF commands anymore was very helpful)

thanks for the advices/hints

1 Like