After drilling into /v2/devices/77f9d97d
{
"name": "Fireplace",
"type": "FP",
"location": "My Room",
"actions": [
"TurnFpFanOn",
"TurnOff",
"TurnLightOff",
"TurnFpFanOff",
"TurnOn",
"TurnLightOn",
"IncreaseFlame",
"TogglePower",
"Stop",
"ToggleLight",
"DecreaseFlame",
"SetFlame",
"SetFpFan"
],
"_": "8e19e178",
"commands": {
"_": "cd31f3b8"
},
"state": {
"_": "22efe7af"
},
"properties": {
"_": "c5834763"
},
"skeds": {
"_": "f6d69ea5"
}
}
I can then pull the commands /v2/devices/77f9d97d/commands
{
"_": "cd31f3b8",
"11dc1acf": {
"_": "e396a56c"
},
"53157df9": {
"_": "dff3a9b7"
},
"1350a1df": {
"_": "c0a15c22"
},
"5e9136dc": {
"_": "433e3f5b"
},
"6d0eacd3": {
"_": "cc680753"
},
"7d8fbc76": {
"_": "f3c49fea"
},
"5777bc38": {
"_": "faa728f1"
},
"4c46a778": {
"_": "3ad69a1d"
}
}
how do I map / link a given command to the function on the remote?
In the above I want TurnLightOn to be a repetition of 5, how do I map the function TurnLightOn to the command key? Or put another way is there a mapping of Commands to Actions