Use Alexa to turn On/Off a item which is a string?

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

Solved with this smart man’s solution

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