Is there any way to change the TRVZB schedules programmatically via the API, node-red ?
I have 19 TRVZB’s and when we have visitors or go on holiday I’d like to make various automated changes.
Is there any way to change the TRVZB schedules programmatically via the API, node-red ?
I have 19 TRVZB’s and when we have visitors or go on holiday I’d like to make various automated changes.
It looks like this is possible through the Open API V2.
Has anyone tried modifying a schedule using the API ?
Hi Peter,
If your TRVZB is added and managed locally through iHost (without using the eWeLink Cloud), you can modify the TRVZB schedule programmatically via Node-RED within iHost.
If you’re not using iHost and instead managing the device through eWeLink Cloud (e.g. via the eWeLink app), you’ll need to integrate using the OpenAPI. Please refer to the documentation:
https://coolkit-technologies.github.io/eWeLink-API/#/en/PlatformOverview
For any OpenAPI integration questions, feel free to contact us at: [bd@coolkit.cn].
Thanks, I have 19 TRVZBs managed locally with an iHost. I already have node red checking the TRVVZB status and switching on my boiler.
I looks like I need to use a control node with a custom payload, is that correct ?
If so, are there any examples of custom payloads for this node ?
I’ve managed to use a custom payload to change the temperature setpoint on the TRVZB using the JSON below. I just need help with aome example JSON for the weekly schedule.
{
“state”: {
“thermostat-target-setpoint”: {
“manual-mode”: {
“targetSetpoint”: 25
}
}
}
}
I’ve now tried some example JSON but get the error -
capability: “thermostat-target-setpoint”
error: 110006
data: object
empty
message: “check control permission fail!”
{
“state”: {
“thermostat-target-setpoint”: {
“auto-mode”: {
“weeklySchedule”: {
“maxEntryPerDay”: 1,
“Monday”: [
{
“startTimeInMinutes”: 480,
“upperSetpoint”: 20,
“lowerSetpoint”: 20
}
]
}
}
}
}
}