New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TuYa TS0601_thermostat weekly schedule #1244
Comments
This function is not implemented due to the complex nature of the data to be sent. This will always need to be controlled by a script - adding a large number of general states to program the schedule seems overkill. In order to program the schedule, you should be able to use the following script stub:
just replace the device ID with the correct one and with what you want to send to the “set” command as JS object with {key:value} notation. In your case, key is “schedule”, and the value is what you want to set as schedule. A. |
Thanks for your quick answer. I will check it and come back. A. |
thank you for your recommendation. this one is working: sendTo('zigbee.0', 'SendToDevice', {'device':'5c0272fffedc3017', 'payload':{ Best regards |
The integration of a TuYa TS0601 thermostat works very well for me so far. An open point is the programming of the times and temperatures for the weekly time programs. I have not yet found a way to send the appropriate values to the thermostat similar to zigbee2mqtt. (tested and works). Is this function not implemented or am I missing something?
https://www.zigbee2mqtt.io/devices/TS0601_thermostat.html
Use topic zigbee2mqtt/FRIENDLY_NAME/set/schedule to set the schedule of the device with 6 timeslots on workdays or holidays (e.g. weekend). Example payload values are:
{
"workdays":[
{"hour":6,"minute":0,"temperature":19},
{"hour":8,"minute":0,"temperature":20},
{"hour":18,"minute":0,"temperature":21},
{"hour":20,"minute":30,"temperature":20},
{"hour":22,"minute":0,"temperature":19},
{"hour":23,"minute":30,"temperature":15}
]
}
{
"holidays":[
{"hour":6,"minute":0,"temperature":19},
{"hour":8,"minute":0,"temperature":20},
{"hour":18,"minute":0,"temperature":21},
{"hour":20,"minute":30,"temperature":20},
{"hour":22,"minute":0,"temperature":19},
{"hour":23,"minute":30,"temperature":15}
]
}
You can set “week” schedule pattern with topic zigbee2mqtt/FRIENDLY_NAME/set. The payload values are: 5+2 -> to be used when workdays for example are monday-friday and saturday & sunday are holidays 6+1 -> to be used when workdays for example are monday-saturday and sunday is a holiday 7 -> to be used when workdays schedule will be used for the whole week
{
"week": "5+2"
}
The text was updated successfully, but these errors were encountered: