[SOLVED] Setting up a harmony button press item

I want to setup an item to power on my device

The rest api shows


"stateDescription": {
    "readOnly": false,
    "options": [
        "value": "PowerOff",
        "label": "Power Off"

how do I map this to a switch???

Switch item=HarmonyGreatRoomActivity mappings=[PowerOff="Power Off", TIVO="TIVO", Music="Music","APPLE TV"="APPLE TV", NETFLIX="NETFLIX"]


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"]