dastrix80
(Kris K)
October 17, 2018, 9:46am
1
Hi all
I use the broadlink binding for my TV and other infrared devices. The item file has the TV as a string.
Is it possible to have Alexa turn this on/off? I tried the lighting tag but Alexa doesnt discover the device… I have the aircon, heater and TV
String Heater "Heater" { channel="broadlink:rm3:78-0f-77-18-43-03:command" }
String Aircon "Aircon" { channel="broadlink:rm3:78-0f-77-18-43-03:command" }
String TV "TV" [ "Lighting" ] { channel="broadlink:rm3:78-0f-77-18-43-03:command" }
Cheers
dastrix80
(Kris K)
October 17, 2018, 10:11am
2
Solved with this smart man’s solution
Hey Guys…
Since i’ve been using OH for quite a time and it becomes now my live system… i wanted to give something back… even its a small part… but this was annoying me alot…and i didnt find something here…
I hope this article is posted in the right category
My Setup:
openHabian + HarmonyHub + Amazon Echo + Westinghouse IR Remote 78095
Since Alexa cant handle String items… i’ve created a Dummy Item… and have written a rule…
So now i can either use the App/Sitemap Control Buttons OR Voice co…
items:
Dimmer TV_Alexa "TV" [ "Switchable" ] // Dummy Item for Alexa as it doesnt understand Strings
Rules:
// Hisense TV On/Off via Alexa Dummy Item
rule "TV Alexa"
when
Item TV_Alexa received command
then
switch (receivedCommand)
{
case ON: sendCommand(TV, "TVOnOff")
case OFF: sendCommand(TV, "TVOnOff")
}
end
3 Likes