Leider muss ich seit heute nacht, nachdem es gestern funktionierte die API alle paar Minuten neu Starten, dass die Befehle funktionieren.
Nun habe ich es so gemacht:
"accessories": [
{
"accessory": "HTTP-SWITCH",
"name": "Küche +",
"switchType": "stateless",
"timeout": 200,
"onUrl": "http://192.168.178.2:5005/Küche/volume/+5"
},
{
"accessory": "HTTP-SWITCH",
"name": "Küche -",
"switchType": "stateless",
"timeout": 200,
"onUrl": "http://192.168.178.2:5005/Küche/Volume/-5"
},
{
"accessory": "HTTP-SWITCH",
"name": "SZ +",
"switchType": "stateless",
"timeout": 200,
"onUrl": "http://192.168.178.2:5005/Schlafzimmer/volume/+5"
},
{
"accessory": "HTTP-SWITCH",
"name": "SZ -",
"switchType": "stateless",
"timeout": 200,
"onUrl": "http://192.168.178.2:5005/Schlafzimmer/Volume/-5"
},
{
"accessory": "HTTP-SWITCH",
"name": "Küche Pause",
"switchType": "stateless",
"timeout": 200,
"onUrl": "http://192.168.178.2:5005/Küche/pause"
},
{
"accessory": "HTTP-SWITCH",
"name": "SZ Pause",
"switchType": "stateless",
"timeout": 200,
"onUrl": "http://192.168.178.2:5005/Schlafzimmer/pause"
},
{
"accessory": "HTTP-SWITCH",
"name": "Küche RP",
"switchType": "stateless",
"timeout": 200,
"onUrl": "http://192.168.178.2:5005/Küche/tunein/play/25168"
},
{
"accessory": "HTTP-SWITCH",
"name": "SZ Sleep",
"switchType": "stateless",
"timeout": 200,
"onUrl": "http://192.168.168.178.2:5005/Schlafzimmer/sleep/3600"
}
],
"platforms": [
{
"platform": "ZP"
},
{
"platform": "HarmonyHubWebSocket",
"name": "HarmonyHub",
"hubIP": "192.168.178.30",
"showTurnOffActivity": true,
"turnOffActivityName": "HC Off",
"refreshTimer": 30
}
]
}