Harmony

Thanks man, i had already these 3 addons in the addon folder so that couldn’t be the reason of my problem but I’ll try the snapshot too and I’ll see if it’s working or not :sweat:

Hi man, i finaly got it working more or less …
So the trouble now is that i only can start the TV. I made an activity called WatchTV which has the Power Off option included already. I than created an item like this:
String Harmony_Activity "activity [%s]" {harmonyhub="*[currentActivity]"}
and sitemap:
Switch item=Harmony_Activity mappings=[PowerOff='PowerOff', Watch TV='TV', FireTV='FireTV']
when i press the “TV” button it turns my TV on but when i press the “Power Off” its not turning off the TV although the WatchTV activity has this Power Off option included.

Do I have to make another activity especially for the Power Off command? I don’t get the idea…

I have also some rules that turns my Fibaro dimmer on / dimm / off and i would like to integrate the TV activity too but first of all i need to see that the TV turns on and off.

Please help :slight_smile:
Thanks.

I got it!!!
It was about a space between Power and Off. After deleting the space now its turning on and off my TV :slight_smile:
Now i have these rules:
rule "Activare scene iluminat"
when
Item Living_SC changed
then
switch Living_SC.state{
case 0:{
logInfo("Scenes", "Scena Film Activa")
sendCommand(Living_dim,50)
}
case 1:{
logInfo("Scenes", "Scena TV Activa")
sendCommand(Living_dim,100)
Harmony_Activity("WatchTV")
}
case 2:{
logInfo("Scenes", "Scena Cina Activa")
sendCommand(Living_dim,20)
}
case 3:{
logInfo("Scenes", "Scena Noapte Activa")
sendCommand(Living_dim,OFF)
Harmony_Activity("PowerOff")
}
}

and the light works fine but the TV its not turning on or off …
Any help wold be kindly appreciated.

Thanks!

I’m still kind of new but I’ll try to help. Try sendCommand(Harmony_Activity,PowerOff). Also try Harmony_Activty.sendCommand(PowerOff). You may have to put PowerOff in quotes like “PowerOff” but I’m not sure off the top of my head. Same type of command for WatchTV. Added some code below.

rule "Activare scene iluminat"
when
     Item Living_SC changed
then
switch Living_SC.state{
case 0:{
logInfo("Scenes", "Scena Film Activa")
sendCommand(Living_dim,50)
}

case 1:{
logInfo("Scenes", "Scena TV Activa")
sendCommand(Living_dim,100)

//not sure if you need quotes around WatchTV or not.
sendCommand(Harmony_Activity,"WatchTV") 
}

case 2:{
logInfo("Scenes", "Scena Cina Activa")
sendCommand(Living_dim,20)
}

case 3:{
logInfo("Scenes", "Scena Noapte Activa")
sendCommand(Living_dim,OFF)

//same thing here with PowerOff
sendCommand(Harmony_Activity,"PowerOff")

//also try using the following syntax
//I've used both before and I'm not really sure what the difference is
//Harmony_Activity.sendCommand("PowerOff")
}
}

Thank you, its working well now with the send command and with quotes :ok_hand:

I would like to modify a little bit this rule meaning that when pressing the TV scene, the light should start or not depending on a light sensor or depending on an clock hour, eg. if the sensor report a value under 20% when pressing the tv scene will turn the light on an the tv on and if is more than 20% will turn only the tv on.
Same thing i think it can be done depending on the day hour but i don’t know how…
Any suggestion would be appreciated.

Thank you all for support.

Not sure if this is a good place to post this or not but ive setup the harmony binding in openhab2 and have noticed a strange issues… seems like the harmony activity keeps creating the same item in the system… Everyday a new one pops up… look at the screenshot below… theres about 20 of those just for reference…

You aren’t alone, I just haven’t had time to think about how to fix it in my case. I had thought it was showing one activity item for each harmony device i’d set up, but haven’t looked at the total number of them recently…

There are alot and everyday more and more…

There is still an open issue:

Has this been fixed… was just looking at that issue thread and it looks like a fix may have been found. Not sure how to implement the fix if it has been.

Will Harmony Hab works without internet?
If i configure it and turn off accesses to internet?

I have unstable connection, and received this error:

Error during the execution of rule SoftAwake
java.lang.IllegalArgumentException: No client '' defined
    at org.openhab.io.harmonyhub.HarmonyHubGateway.withClient(HarmonyHubGateway.java:218) ~[na:na]
    at org.openhab.io.harmonyhub.HarmonyHubGateway.pressButton(HarmonyHubGateway.java:274) ~[na:na]
    at org.openhab.io.harmonyhub.HarmonyHubGateway.pressButton(HarmonyHubGateway.java:258) ~[na:na]
    at org.openhab.action.harmonyhub.internal.HarmonyHub.harmonyPressButton(HarmonyHub.java:34) ~[na:na]

But some time it works without errors.

Answer here:

Hi,

I’m having some strange problems with my Harmony Hub setup using Openhab 2.0. I’ve just included the binding using the Paper UI, but all i get is a load of warnings in my openhab log file. Any ideas what I’ve not done?

2016-12-01 10:03:23.612 [WARN ] [monyhub.handler.HarmonyDeviceHandler] - Command REFRESH is not a String type for channel {] for device harmonyhub:device:BroadlandsLounge:18180471:buttonPress
2016-12-01 10:03:23.616 [WARN ] [monyhub.handler.HarmonyDeviceHandler] - Command REFRESH is not a String type for channel {] for device harmonyhub:device:BroadlandsLounge:12912701:buttonPress
2016-12-01 10:03:23.634 [WARN ] [monyhub.handler.HarmonyDeviceHandler] - Command REFRESH is not a String type for channel {] for device harmonyhub:device:BroadlandsLounge:12912693:buttonPress
2016-12-01 10:03:23.638 [WARN ] [monyhub.handler.HarmonyDeviceHandler] - Command REFRESH is not a String type for channel {] for device harmonyhub:device:BroadlandsLounge:12912696:buttonPress
2016-12-01 10:03:23.641 [WARN ] [monyhub.handler.HarmonyDeviceHandler] - Command REFRESH is not a String type for channel {] for device harmonyhub:device:BroadlandsLounge:12912700:buttonPress

Hi,

how can switch a Channel with my Alexa? I want so switch to the Channel 1142 for example.
Here is my entry from the Paper UI

"link": "http://192.168.188.63:8080/rest/items/Receiver",
    "state": "Pause",
    "stateDescription": {
      "readOnly": false,
      "options": [
        {
          "value": "PowerToggle",
          "label": "Power Toggle"
        },
        {
          "value": "Number0",
          "label": "0"
        },
        {
          "value": "Number1",
          "label": "1"
        },
        {
          "value": "Number2",
          "label": "2"
        },
        {
          "value": "Number3",
          "label": "3"
        },
        {
          "value": "Number4",
          "label": "4"
        },
        {
          "value": "Number5",
          "label": "5"
        },
        {
          "value": "Number6",
          "label": "6"
        },
        {
          "value": "Number7",
          "label": "7"
        },
        {
          "value": "Number8",
          "label": "8"
        },
        {
          "value": "Number9",
          "label": "9"
        },
        {
          "value": "Mute",
          "label": "Mute"
        },
        {
          "value": "VolumeDown",
          "label": "Volume Down"
        },
        {
          "value": "VolumeUp",
          "label": "Volume Up"
        },
        {
          "value": "PrevChannel",
          "label": "Prev Channel"
        },
        {
          "value": "ChannelDown",
          "label": "Channel Down"
        },
        {
          "value": "ChannelUp",
          "label": "Channel Up"
        },
        {
          "value": "DirectionDown",
          "label": "Direction Down"
        },
        {
          "value": "DirectionLeft",
          "label": "Direction Left"
        },
        {
          "value": "DirectionRight",
          "label": "Direction Right"
        },
        {
          "value": "DirectionUp",
          "label": "Direction Up"
        },
        {
          "value": "Select",
          "label": "Select"
        },
        {
          "value": "Stop",
          "label": "Stop"
        },
        {
          "value": "Play",
          "label": "Play"
        },
        {
          "value": "Rewind",
          "label": "Rewind"
        },
        {
          "value": "Pause",
          "label": "Pause"
        },
        {
          "value": "FastForward",
          "label": "Fast Forward"
        },
        {
          "value": "Record",
          "label": "Record"
        },
        {
          "value": "Menu",
          "label": "Menu"
        },
        {
          "value": "Subtitle",
          "label": "Subtitle"
        },
        {
          "value": "Audio",
          "label": "Audio"
        },
        {
          "value": "Teletext",
          "label": "Teletext"
        },
        {
          "value": "List",
          "label": "List"
        },
        {
          "value": "Green",
          "label": "Green"
        },
        {
          "value": "Red",
          "label": "Red"
        },
        {
          "value": "Blue",
          "label": "Blue"
        },
        {
          "value": "Yellow",
          "label": "Yellow"
        },
        {
          "value": "Guide",
          "label": "Guide"
        },
        {
          "value": "Exit",
          "label": "Exit"
        },
        {
          "value": "Help",
          "label": "Help"
        },
        {
          "value": "LeftArrow",
          "label": "LeftArrow"
        },
        {
          "value": "Radio",
          "label": "Radio"
        },
        {
          "value": "RightArrow",
          "label": "RightArrow"
        },
        {
          "value": "TV",
          "label": "TV"
        }
      ]
    },
    "type": "String",
    "name": "Receiver",
    "label": "Send Button Press",
    "category": "",
    "tags": [],
    "groupNames": []
  },

Thanks for Help…

Lars

Install the Hue emulation service and put the mentioned keywords in your items definition, then let Alexa search for newe devices.

Hi,
I instaled the Addon what i posed i the keyword List.
I i have nö Idee how i make the Item with keywords

Switch TestSwitch1 "Kitchen Switch" [ "Switchable" ]

“Kitchen Switch” is the name you have to tell Alexa to switch:

Alexa, switch Kitchen Switch to ON or (in German)

Switch TestSwitch1 "Küchenschalter" [ "Switchable" ]

Alexa, schalte Küchenschalter ein.

Hi
Now i have a Item. And when i Change the number with Break than Alexa breaks my Show, so the Rule Works. But when i put the Channel in it than it will be Not Change the Channel.

rule "umschalten"
when
Item prosieben received update
then
var String HarmonyState = Harmony_Hub.state.toString()
if (HarmonyState == “Fernseher”)
sendCommand(Receiver, “1142”)
end

The Channel Id is the 1142. How Mist i Change the Rule?

But how can i change to Channel 1142? Thanks for Help

Any idea if the binding works with the older Harmony Link?
I can’t find any documentation on the difference between the Link and the Hub.

Try send by one digit.
Send 1, sleep for 200ms, send 2 and so on.

is anyone able to access lights or switches that are controlled by the harmony hub? My lutron caseta lights, hue lights, and wemo switches are all hooked to my Harmony Hub. I know I can just use their appropriate bindings to access the hue and wemo devices. I just want to know if there’s any way to do it.