OpenHab Alexia

openhab2
windows
orvibo
Tags: #<Tag:0x00007fadfd48ba90> #<Tag:0x00007fadfd48b810> #<Tag:0x00007fadfd48b388>

(Eric Dycus) #1

I am trying to get an item setup fro Alexia to control but it is not showing up as an Item in OpenHab cloud page. Any suggestions on what I am doing wrong? I have Openhab2, Windows, and a Orvibo IR blaster. It works if I use it fro the control panel but not the OpenHab cloud items. I can get other things to show up just not the item I want to control.

any help is appreciated.

Here is my Items and Sitemap

items:
Switch Presence_Mobile_Eric “Eric Cell Phone” { channel=“network:device:10_0_0_2:online” }
Switch LRTVPower “LRTVPower” [“Switchable”]

Sitemap:
sitemap default label=“My first sitemap”
{
Switch item=Presence_Mobile_Eric label="Eric’s Mobile"
Switch item=LRTVPower label=“Power”
}

Rules (in case you need it):
rule "anything it doesnot matter"
when
Item LRTVPower received command ON
then
val results = executeCommandLine(“c:/Python35/python.exe@@C:/openHAB2/conf/scripts/orvibo.py@@-i@@10.0.0.190@@-e@@C:/openHAB2/conf/scripts/test-lr-tv-on.ir”, 5000)
logInfo(“execTest”, results)
end

rule "anything it doesnot matter"
when
Item LRTVPower received command OFF
then
val results = executeCommandLine(“c:/Python35/python.exe@@C:/openHAB2/conf/scripts/orvibo.py@@-i@@10.0.0.190@@-e@@C:/openHAB2/conf/scripts/test-lr-tv-on.ir”, 5000)
logInfo(“execTest”, results)
end


(SiHui) #3

Read the first couple of posts in this thread and you should be fine:


(Eric Dycus) #4

That solved my problem.

This is what I ended up with

items:
Switch Presence_Mobile_Eric “Eric Cell Phone” { channel=“network:device:10_0_0_2:online” }
Switch LRTV “Living Room TV” [ “Lighting” ]

Sitemap:
sitemap default label=“My first sitemap”
{
Switch item=Presence_Mobile_Eric label=“Eric’s Mobile”

Switch item=LRTV label="Living Room TV"

}

Rules:
rule "Living_Room_TV_On"
when
Item LRTV received command ON
then
val results = executeCommandLine(“c:/Python35/python.exe@@C:/openHAB2/conf/scripts/orvibo.py@@-i@@10.0.0.190@@-e@@C:/openHAB2/conf/scripts/test-lr-tv-on.ir”, 5000)
logInfo(“execTest”, results)
end

rule "Living_Room_TV_Off"
when
Item LRTV received command OFF
then
val results = executeCommandLine(“c:/Python35/python.exe@@C:/openHAB2/conf/scripts/orvibo.py@@-i@@10.0.0.190@@-e@@C:/openHAB2/conf/scripts/test-lr-tv-on.ir”, 5000)
logInfo(“execTest”, results)
end