Hi all,
i am a new user on OpenHab
I have a question about working with Harmony.
I connected Harmony and I can see all my devices.
One of the devices is a DVR which I transmit the channels on TV.
I want to make a list of channels and control them through the app.
How do I execute the process?
I need to make a Rule because it is about sending 2 or more commands
I see the device itself as follows:
harmonyhub:device:homecohen:37575602:buttonPress
This is the detail I get from Rest api
{
“parameters”: ,
“parameterGroups”: ,
“description”: “Send a button press to device Yes DVR”,
“label”: “Send Button Press”,
“itemType”: “String”,
“kind”: “STATE”,
“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”
},
As you can see, I have orders of numbers here.
For example, I want to create a list of channels through which I will control the app
(012,013,088,010 for example)
I tried to make that RULE but I’m not sure I did it well:
rule “Yes_Channel”
when
Item Yes received update ON
then
Yes.sendCommand ("1") Yes.sendCommand ("2")
end
I created Rule in Rule Engine in ui and the channel did move properly
Another question, do I need to subscribe for each channel individually?
Is there an option to create one Rule, then to create a list of channels in the SIETMAP file?
Thank you so much!