Hi Everybody,
I’m new to this forum, have just switched from HASS to openHAB. I have a problem with Alexa, it doesn’t see my openhab devices. I’ve enabled openHAB skill, integrated it with Alexa and enabled Simple Mode in Paper UI.
I can turn on and off my lamps (two 433 powerplugs: LeftLamp, RightLamp) but can’t control them with Alexa. Here’s my configuration:
Items:
Switch LeftLamp "Left Lamp" <poweroutlet> (GF_LivingRoom, gPower)
Switch RightLamp "Right Lamp" <poweroutlet> (GF_LivingRoom, gPower)
Switch Remote_Send [ "Switchable" ] { channel="exec:command:remote-send:run" }
String Remote_Send_Args { channel="exec:command:remote-send:input" }
String Remote_Send_Out { channel="exec:command:remote-send:output" }
rule "Left Lamp"
when
Item LeftLamp received command
then
// wait for transmitter to be free
// State will be NULL if not used before or ON while command is executed
while(Remote_Send.state == ON){
Thread::sleep(500)
}
if(receivedCommand == ON){
Remote_Send_Args.sendCommand("4529999")
}else{
Remote_Send_Args.sendCommand("4528888")
}
// wait for the command to complete
while(Remote_Send.state != OFF){
Thread::sleep(500)
}
logInfo("LeftLamp", "Result:" + Remote_Send_Out.state )
end
rule "Right Lamp"
when
Item RightLamp received command
then
// wait for transmitter to be free
// State will be NULL if not used before or ON while command is executed
while(Remote_Send.state == ON){
Thread::sleep(500)
}
if(receivedCommand == ON){
Remote_Send_Args.sendCommand("4520000")
}else{
Remote_Send_Args.sendCommand("4521111")
}
// wait for the command to complete
while(Remote_Send.state != OFF){
Thread::sleep(500)
}
logInfo("RightLamp", "Result:" + Remote_Send_Out.state )
end
Sitemap:
Text label="Living Room Lamps" icon="light" {
Switch item=LeftLamp label="Left Lamp"
Switch item=RightLamp label="Right Lamp"
}
When I ask Alexa: “Left Lamp on” she replies: “Sorry, I didn’t find Left Lamp”. There’s nothing in the openhablog.
Any ideas what am I doing wrong? Thanks in advance for your help!
Cheers,
Slaw