Ja kann man mit api.get und opi.put.
Schau im Schwagger nach !
Hier mein Eintrag für ID10 !
{
"id": 10,
"name": "EG-Küche",
"active": true,
"mode": "Schedule",
"properties": {
"mode": "Heat",
"monday": {
"morning": {
"hour": 5,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"day": {
"hour": 9,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"evening": {
"hour": 17,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"night": {
"hour": 22,
"minute": 0,
"temperatureHeating": 16,
"temperatureCooling": 20
}
},
"tuesday": {
"morning": {
"hour": 5,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"day": {
"hour": 9,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"evening": {
"hour": 17,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"night": {
"hour": 22,
"minute": 0,
"temperatureHeating": 16,
"temperatureCooling": 20
}
},
"wednesday": {
"morning": {
"hour": 5,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"day": {
"hour": 9,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"evening": {
"hour": 17,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"night": {
"hour": 22,
"minute": 0,
"temperatureHeating": 16,
"temperatureCooling": 20
}
},
"thursday": {
"morning": {
"hour": 5,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"day": {
"hour": 9,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"evening": {
"hour": 17,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"night": {
"hour": 22,
"minute": 0,
"temperatureHeating": 16,
"temperatureCooling": 20
}
},
"friday": {
"morning": {
"hour": 5,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"day": {
"hour": 9,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"evening": {
"hour": 17,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"night": {
"hour": 22,
"minute": 0,
"temperatureHeating": 16,
"temperatureCooling": 20
}
},
"saturday": {
"morning": {
"hour": 7,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"day": {
"hour": 9,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"evening": {
"hour": 17,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"night": {
"hour": 22,
"minute": 0,
"temperatureHeating": 16,
"temperatureCooling": 20
}
},
"sunday": {
"morning": {
"hour": 7,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"day": {
"hour": 9,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"evening": {
"hour": 17,
"minute": 0,
"temperatureHeating": 21,
"temperatureCooling": 23
},
"night": {
"hour": 22,
"minute": 0,
"temperatureHeating": 16,
"temperatureCooling": 20
}
},
"handSetPointHeating": 8,
"handSetPointCooling": 22,
"handTimestamp": 0,
"handMode": "Heat",
"vacationSetPointHeating": 18,
"vacationSetPointCooling": 26,
"vacationMode": "Auto",
"vacationStartTime": 0,
"vacationEndTime": 0,
"currentTemperatureHeating": 21,
"currentTemperatureCooling": 23,
"currentSetpointTimeStartHour": 9,
"currentSetpointTimeStartMinute": 0,
"currentSetpointTimeEndHour": 17,
"currentSetpointTimeEndMinute": 0,
"devices": [
204
],
"incompatibleDevices": [
204
]
},
"created": 1609919997,
"modified": 1609919997
}
Hier der Dazugehörige Eintrag !
Jetzt noch etwas rumprobieren und erledigt !
Wenn ich eine Szene aktivieren oder Deaktivieren möchte mache ich das so !
api.put("/scenes/"…176,{enabled=false})
fibaro.sleep(10000)
api.put("/scenes/"…176,{enabled=true})
So als Basis für deine Versuche gedacht.
Gruss Frank