Reposting due to post being affected by server issue.
Hi
So I have done some further testing etc and debugging with the following:
log:set TRACE com.digitaldan.harmony
So If I send Info to the HarmonyHub I get the following:
19:03:47.938 [TRACE] [ub.internal.handler.HarmonyHubHandler] - Handling command 'Info' for harmonyhub:hub:MarkHub:buttonPress
19:03:47.953 [DEBUG] [com.digitaldan.harmony.HarmonyClient ] - Sending: {"hbus":{"cmd":"vnd.logitech.harmony/vnd.logitech.harmony.engine?holdAction","id":"dc3b38ab-9883-47c9-b808-ddc074627ef7","params":{"action":"{\"type\":\"IRCommand\",\"deviceId\":\"60277394\",\"command\":\"Info\"}","status":"press","timestamp":44875259}}}
19:03:47.953 [TRACE] [com.digitaldan.harmony.HarmonyClient ] - writeSuccess for message dc3b38ab-9883-47c9-b808-ddc074627ef7
19:03:48.156 [DEBUG] [com.digitaldan.harmony.HarmonyClient ] - Sending: {"hbus":{"cmd":"vnd.logitech.harmony/vnd.logitech.harmony.engine?holdAction","id":"5b7d2a4f-687c-497e-8d87-acc0cd54d24b","params":{"action":"{\"type\":\"IRCommand\",\"deviceId\":\"60277394\",\"command\":\"Info\"}","status":"release","timestamp":44875462}}}
19:03:48.156 [TRACE] [com.digitaldan.harmony.HarmonyClient ] - writeSuccess for message 5b7d2a4f-687c-497e-8d87-acc0cd54d24b
If I send Red I get:
19:04:19.559 [TRACE] [ub.internal.handler.HarmonyHubHandler] - Handling command 'red' for harmonyhub:hub:MarkHub:buttonPress
19:04:19.559 [DEBUG] [com.digitaldan.harmony.HarmonyClient ] - Sending: {"hbus":{"cmd":"vnd.logitech.harmony/vnd.logitech.harmony.engine?holdAction","id":"c209725f-d99e-417f-b1c4-c3f24145ea9b","params":{"action":"{\"type\":\"IRCommand\",\"deviceId\":\"60277394\",\"command\":\"Red\"}","status":"press","timestamp":44906865}}}
19:04:19.559 [TRACE] [com.digitaldan.harmony.HarmonyClient ] - writeSuccess for message c209725f-d99e-417f-b1c4-c3f24145ea9b
19:04:19.764 [DEBUG] [com.digitaldan.harmony.HarmonyClient ] - Sending: {"hbus":{"cmd":"vnd.logitech.harmony/vnd.logitech.harmony.engine?holdAction","id":"321225bd-bd9d-42c2-9a56-f5acfa85c7d9","params":{"action":"{\"type\":\"IRCommand\",\"deviceId\":\"60277394\",\"command\":\"Red\"}","status":"release","timestamp":44907070}}}
19:04:19.764 [TRACE] [com.digitaldan.harmony.HarmonyClient ] - writeSuccess for message 321225bd-bd9d-42c2-9a56-f5acfa85c7d9
Which look like both commands are working.
I also noted that when sending the colour commands to the Hub, the Green LED does flash to indicate a command received.
However the Red command works on the Remote, but not via the HarmonyHub Binding for some reason.
If I assign a different value (such as Info etc) to the Red button on the Widget, that value works. So issue seems to be specific to the colour Keys.
Wonder if this is similar to what @Craigers mentioned here regarding the DVR button -
@Craigers also confirmed that my edited Widget seems to work on his setup using the colour buttons, so I am now at a loss for what else to try.
My updated widget is as follows:
uid: harmony-test
tags: []
props:
parameters:
- context: item
description: Select the Harmony you wish to use at an equipment item level
label: Select Harmony Equipment
name: harmony
required: true
type: TEXT
parameterGroups: []
timestamp: Feb 7, 2021, 12:56:30 PM
component: f7-card
config:
style:
background-color: rgb(26, 26, 26)
--f7-card-margin-horizontal: 0px
border-radius: 70px
width: 20rem
height: 44rem
slots:
default:
- component: Label
config:
text: ="Harmony"
style:
position: absolute
left: 125px
top: 15px
color: white
font-size: 18px
line-height: 32px
white-space: nowrap
overflow: hidden
text-overflow: ellipsis
text-shadow: -1px 1px 1px hsl(0,0%,66%)
- component: oh-button
config:
text: Off
raised: true
large: true
textColor: white
bgColor: black
action: command
actionCommand: PowerOff
actionItem: =props.harmony+"_CurrentActivity"
style:
position: absolute
left: 30px
top: 60px
border-radius: 12px
- component: oh-button
config:
text: "=(items[props.harmony+'_CurrentActivity'].state === 'PowerOff') ? 'Click to Start' : items[props.harmony+'_CurrentActivity'].state"
raised: true
large: true
textColor: white
bgColor: gray
action: options
actionItem: =props.harmony+"_CurrentActivity"
style:
position: absolute
right: 40px
top: 60px
width: 185px
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 130px
top: 110px
width: 60px
height: 85px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 115px
left: 150px
color: white
iconF7: play
iconSize: 25
action: command
actionCommand: PLAY
actionItem: =props.harmony+"_PlayerControl"
- component: oh-link
config:
style:
position: absolute
top: 165px
left: 150px
color: white
iconF7: pause
iconSize: 25
action: command
actionCommand: PAUSE
actionItem: =props.harmony+"_PlayerControl"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 30px
top: 110px
width: 90px
height: 40px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 117px
left: 40px
color: white
iconF7: backward_end_alt
iconSize: 25
action: command
actionCommand: PREVIOUS
actionItem: =props.harmony+"_PlayerControl"
- component: oh-link
config:
style:
position: absolute
top: 117px
left: 85px
color: white
iconF7: backward
iconSize: 25
action: command
actionCommand: REWIND
actionItem: =props.harmony+"_PlayerControl"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 30px
top: 155px
width: 90px
height: 40px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 117px
right: 40px
color: white
iconF7: forward_end_alt
iconSize: 25
action: command
actionCommand: NEXT
actionItem: =props.harmony+"_PlayerControl"
- component: oh-link
config:
style:
position: absolute
top: 117px
right: 85px
color: white
iconF7: forward
iconSize: 25
action: command
actionCommand: FASTFORWARD
actionItem: =props.harmony+"_PlayerControl"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
right: 30px
top: 155px
width: 90px
height: 40px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 162px
left: 65px
color: red
iconF7: circle_fill
iconSize: 25
action: command
actionCommand: Record
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
right: 30px
top: 110px
width: 90px
height: 40px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 162px
right: 65px
color: white
iconF7: stop_fill
iconSize: 25
action: command
actionCommand: Stop
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
right: 40px
top: 210px
width: 100px
height: 40px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 220px
right: 68px
color: white
text: MENU
action: command
actionCommand: Menu
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 40px
top: 210px
width: 100px
height: 40px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 220px
left: 78px
color: white
text: EXIT
action: command
actionCommand: Exit
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 30px
top: 260px
width: 60px
height: 50px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 272px
left: 47px
color: white
iconF7: speaker_3
iconSize: 25
action: command
actionCommand: VolumeUp
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 125px
top: 255px
width: 70px
height: 60px
border-radius: 50%
- component: oh-link
config:
style:
position: absolute
top: 267px
left: 143px
color: white
z-index: 2
iconF7: arrowtriangle_up
iconSize: 35
action: command
actionCommand: DirectionUp
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
right: 30px
top: 260px
width: 60px
height: 50px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 273px
right: 47px
color: white
iconF7: arrow_up_square
iconSize: 25
action: command
actionCommand: ChannelUp
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 65px
top: 315px
width: 60px
height: 70px
border-radius: 50%
- component: oh-link
config:
style:
position: absolute
top: 333px
left: 71px
color: white
z-index: 2
iconF7: arrowtriangle_left
iconSize: 35
action: command
actionCommand: DirectionLeft
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 127px
top: 318px
width: 65px
height: 65px
border-radius: 50%
border: gray solid 1px
z-index: 2
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 80px
top: 270px
width: 160px
height: 160px
border-radius: 50%
z-index: 1
- component: oh-link
config:
text: OK
style:
font-size: 25px
position: absolute
top: 331px
left: 142px
color: white
z-index: 3
iconSize: 75
action: command
actionCommand: Select
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
right: 65px
top: 315px
width: 60px
height: 70px
border-radius: 50%
- component: oh-link
config:
style:
position: absolute
top: 333px
right: 71px
color: white
iconF7: arrowtriangle_right
iconSize: 35
action: command
actionCommand: DirectionRight
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 125px
top: 380px
width: 70px
height: 60px
border-radius: 50%
- component: oh-link
config:
style:
position: absolute
top: 400px
left: 142px
color: white
iconF7: arrowtriangle_down
iconSize: 35
action: command
actionCommand: DirectionDown
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 30px
top: 390px
width: 60px
height: 50px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 404px
left: 47px
color: white
iconF7: speaker_1
iconSize: 25
action: command
actionCommand: VolumeDown
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
right: 30px
top: 390px
width: 60px
height: 50px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 403px
right: 47px
color: white
iconF7: arrow_down_square
iconSize: 25
action: command
actionCommand: ChannelDown
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 40px
top: 450px
width: 90px
height: 40px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 456px
left: 72px
color: white
iconF7: speaker_slash_rtl
iconSize: 25
action: command
actionCommand: Mute
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
right: 40px
top: 450px
width: 90px
height: 40px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 457px
right: 70px
color: white
iconF7: arrow_uturn_left
iconSize: 25
action: command
actionCommand: ChannelPrev
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 30px
top: 500px
width: 80px
height: 40px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 510px
left: 55px
color: white
text: DVR
action: command
actionCommand: Info
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 30px
top: 500px
width: 80px
height: 40px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 510px
left: 140px
color: white
text: GUIDE
action: command
actionCommand: Guide
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 120px
top: 500px
width: 80px
height: 40px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 510px
right: 58px
color: white
text: INFO
action: command
actionCommand: Info
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
right: 30px
top: 500px
width: 80px
height: 40px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 549px
left: 47px
color: white
text: RED
action: command
actionCommand: red
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: red
style:
position: absolute
left: 28px
top: 550px
width: 60px
height: 20px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 549px
left: 105px
color: white
text: GREEN
action: command
actionCommand: green
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: green
style:
position: absolute
left: 97px
top: 550px
width: 60px
height: 20px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 549px
left: 167px
color: white
text: YELLOW
action: command
actionCommand: yellow
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: yellow
style:
position: absolute
left: 164px
top: 550px
width: 60px
height: 20px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 549px
left: 243px
color: white
text: BLUE
action: command
actionCommand: blue
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: blue
style:
position: absolute
left: 230px
top: 550px
width: 60px
height: 20px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 587px
left: 62px
color: white
iconF7: lightbulb
iconSize: 25
action: command
actionCommand: Info
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 30px
top: 580px
width: 90px
height: 40px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 588px
left: 150px
color: white
iconF7: plus
iconSize: 25
action: command
actionCommand: Info
actionItem: =props.harmony+"_ButtonPress"
- component: oh-link
config:
style:
position: absolute
top: 635px
left: 150px
color: white
iconF7: minus
iconSize: 25
action: command
actionCommand: Info
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 130px
top: 580px
width: 60px
height: 90px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 587px
right: 55px
color: white
iconF7: lightbulb_fill
iconSize: 25
action: command
actionCommand: Info
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
right: 30px
top: 580px
width: 90px
height: 40px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 637px
left: 62px
color: white
iconF7: lightbulb
iconSize: 25
action: command
actionCommand: Info
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
left: 30px
top: 630px
width: 90px
height: 40px
border-radius: 12px
- component: oh-link
config:
style:
position: absolute
top: 637px
right: 55px
color: white
iconF7: lightbulb_fill
iconSize: 25
action: command
actionCommand: Info
actionItem: =props.harmony+"_ButtonPress"
- component: f7-badge
config:
bgColor: black
style:
position: absolute
right: 30px
top: 630px
width: 90px
height: 40px
border-radius: 12px
I have also looked at the JSON string generated at Binding Start, which seems to indicate the Coloured Buttons are configured?
So I am now at a loss for where to from here?
Thanks as always
Mark