Hi, I have an issue with the Harmony Hub and/or Alexa…
I created an item to the Harmony Device “Apple TV” in my config:
Switch AppleTV “Apple TV Wohnzimmer” [ “Switchable” ] {channel="harmonyhub:device:Media:44202781:buttonPress}
(Before I made erverything over the paper UI, so I am not very familiar with the config.)
If I tell Alexa to turn on the “Apple TV Wohnzimmer” she answers “OK” but nothing happens…
The Harmony discovers the “Apple TV” as a light, and wants to handle it like a that. (In Harmony App Color Changing). Even if I press the ON button in the harmony app nothing happens…
I’ve read the harmony Tutorial but I am lost. Perhaps I did something wrong at the beginning as I linked the things / Items with Paper UI?
Be sure that your device “Apple TV” or your new action “Apple TV sehen” are running with your “Harmony App” or your Harmony remote control.
3.Detect your new device “Apple TV” with OpenHAB (Paper UI). Should be detected AUTOMATICALLY.
Now you have the choice: you can run the ‘action’ you created in Harmony Hub configuration (in step 2), e.g. “Apple TV sehen” or you can press a special button on your Harmony Hub device “Apple TV”.
I’ll use this thread again because it exactly handle my question.
I use the harmony hub binding. Added devices in my harmony app and added those as thing in openhab. I’m able to control the IR devices via paperui control / habpanel. but I’m still unable to use alexa voice recognitation with my config.
// Fernbedienung via Alexa
rule "Fernbedienung_Alexa"
when
Item Fernbedienung_Alexa received command
then
switch(receivedCommand)
{
case ON : Fernbedienung.sendCommand("ON")
case OFF : Fernbedienung.sendCommand("OFF")
}
end
The “ON” and “OFF” after .sendCommand are the string-commands. They could differ. You have to find out, which string to put in.
rule "Fernbedienung"
when
Item Fernbedienung received command
then
switch(receivedCommand)
{
case ON : DenonAVR.sendCommand("PowerOn")
case VolumeUp : DenonAVR.sendCommand("VolumeUp")
case OFF : DenonAVR.sendCommand("PowerOff")
}
end
when I say “Fernbedienung einschalten/ausschalten” then the Denon AVR goes on/off.
But when I say “Fernbedienung lauter”(louder) then alexa say, that Fernbedienung does not support this. Similar when I say Fernbedienung Volume Up. At this point, alexa stops with a beep and doesnt give any feedback. Also it seems that the received Command is already translated from openhab or alexa because e.g. “case einschalten” instead of “case ON” doesnt work. the function seems to be very limited.
You can loose the [“Switchable”] in the String item.
“Lauter” / “Leiser” won´t be recogniced by alexa. Try using “Hoch” / “Runter”, With another rule it could work. I am using something like this with my rollershutters. Here is my instruction, how i did that: CLICK.
Best regards,
Alex
EDIT:
This rule could work:
rule "Fernbedienung"
when
Item Fernbedienung received command
then
switch(receivedCommand)
{
case ON : DenonAVR.sendCommand("PowerOn")
case 0 : DenonAVR.sendCommand("VolumeDown")
case 25 : DenonAVR.sendCommand("VolumeUp")
case OFF : DenonAVR.sendCommand("PowerOff")
}
end
yes this does work. But nevertheless this is not a way I will go. I dont understand why this is so hard (for me?) to implement alexa + logitech harmony the way I want to (well… normally I dont need openhab for this but without openhab I’m not able/I’m to stupid to use alexa + logitech harmony hub with the default harmony skill).