milo
(M)
1
Hello,
I want to setup an item to power on my device
The rest api shows
http://myip:8080/rest/channel-types/harmonyhub%3Adevice%3Awohnzimmer%3AHTPC%3AbuttonPress
"stateDescription": {
"readOnly": false,
"options": [
{
"value": "PowerOff",
"label": "Power Off"
},
how do I map this to a switch???
sihui
(SiHui)
2
Switch item=HarmonyGreatRoomActivity mappings=[PowerOff="Power Off", TIVO="TIVO", Music="Music","APPLE TV"="APPLE TV", NETFLIX="NETFLIX"]
@milo
First of all you need the following entry in your .items file
String HarmonyHTPCButtonPress "HTPC Button Press" { channel="harmonyhub:device:wohnzimmer:HTPC:buttonPress" }
.
Then an entry in your .sitemap file:
Switch item=HarmonyHTPCButtonPress mappings=[PowerOff="Power Off"]