Open derekoharrow opened 5 years ago
Re-work to determine whether to change Tado status based on whether this script set the status, or a user set the status:
global_data: TadoStatesSet = { initial = {} }
If device set to manual and TadoStateSet[zonename]=="MANUAL" then set to AUTO then do nothing - Override has been set by user If device set to Auto and TadoStateSet[zonename]=="AUTO" then do nothing - Auto mode running (Override must have been cancelled by user)
If turning off, set TADO_SET_STATE to MANUAL
TadoStateSet[zonename]='MANUAL'
If turning on, set TADO_SET_STATE to AUTO
TadoStateSet[zonename]='AUTO'
It could be that the user has manually changed zone heating while at home. The script will currently override their setting. Needs to check first if the user was previously away and is now home, and then perform the action.