Skip to content

Conversation

@deichcode
Copy link

In the const.py there is no overlay type/mode constant that is set to "TADO_MODE". However, this string is supported by the tado API, and if used as typeSkillBasedApp the overlay will remain until either the next time block is reached or the home state is changed.

At the moment the CONST_OVERLAY_TADO_MODE is set to "NEXT_TIME_BLOK". In contrast to the actual "TADO_MODE," this overlay remains until the time of the next time block arrives independently of the home state.

The two different types are reflected in the UI like this

TADO_MODE
TADO_MODE

NEXT_TIME_BLOCK
NEXT_TIME_BLOCK

Therefore, I'd suggest that CONST_OVERLAY_TADO_MODE is now set to "TADO_MODE" and a new CONST_OVERLAY_NEXT_TIME_BLOCK is introduced. Since this is a breaking change for everyone using the previous definition of CONST_OVERLAY_TADO_MODE, it should be discussed how to proceed. However, using a const named this way might have caused unintended behavior in the past.

Previously the CONST_OVERLAY_TADO_MODE was set to "NEXT_TIME_BLOK". However, there is also an overlay type called "TADO_MODE".
The CONST_OVERLAY_TADO_MODE is now set to "TADO_MODE" and a new CONST_OVERLAY_NEXT_TIME_BLOCK is introduced. Furthermore, an elaborative comment on the overlay modes/types was added.
Since this is a breaking change for everyone using the previous definition of CONST_OVERLAY_TADO_MODE, it should be discussed how to proceed. However, using a const named this way might have caused unintended behavior in the past.
@wmalgadey
Copy link
Owner

This will change the default behavior of tado in homeassistant, wouldn't it? I don't know, if it is a dealbreaker to change it to the next time block or until the next home/away change!?

@wmalgadey wmalgadey force-pushed the master branch 4 times, most recently from 4cd53de to cc9647f Compare December 19, 2024 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants