-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Schedule Hold not populating in preset_modes #330
Comments
Thanks for reporting. Should be fixable. Couple of potential approaches. a) if the thermostat is in Schedule Hold, Schedule Hold will be added to the valid list of presets Alternate approach a) always have schedule hold in the list of presets Thoughts? |
Personally, I would probably approach it the same as cancel hold, since that is not an actual preset. Barring that, it would appear that Schedule Hold should be available on every unit, so probably statically add it to the list? Edit: I reread your comment and I see the issue. Since it is not an actual preset and also does not map to a function like cancel hold, it will appear in the list but be unusable and thus throw a different error. I don't suppose we can tell what preset we're coming from to trap the error and set the preset back to a valid one? |
In further thought, the first approach makes more sense and it appears you are already headed that direction in the PR. |
I think we can. Lennox uses numerical ids for the schedules. So 1-16 are the user presets. If you are on schedule id 3 and override it, they add 32, so that becomes schedule id 35. When we cancel it, it goes back to 3. How would you see this working? |
That sounds promising |
So it turns out that we can't add that preset in sometimes. So we are going with a) always have schedule hold in the list of presets Note, when attempting to do B in the climate card and error is reported to the UI; however the climate cards "optimistic" mode will show schedule hold temporarily until it's timer expires or the card is reloaded. |
This should be fixed in https://github.com/PeteRager/lennoxs30/releases/tag/2024.6.1 Please give it a try; let me know if it fixes. |
Describe the bug
"Schedule Hold" is returned by the S30 any time the fan or temperature is changed from the default, in property preset_mode. This causes an error to pop up in the thermostat card on load, such as:
Preset mode is not valid. Valid preset modes are: schedule IQ, Summer, Winter, Fall/Early Spring, Default, away, cancel hold, cancel away mode, none.
The above list of modes is populated in property preset_modes (note plural)
To Reproduce
Steps to reproduce the behavior: create a thermostat card tied to the HVAC zone, change either the fan or temperature setting
Expected behavior
Schedule Hold should be a member of the list in preset_modes to prevent the above error
Screenshots/Logs
![image](https://private-user-images.githubusercontent.com/79777799/342910375-7fa4cda3-7f1b-4387-a8d9-26877a342fe1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzNDc0NzksIm5iZiI6MTcyMzM0NzE3OSwicGF0aCI6Ii83OTc3Nzc5OS8zNDI5MTAzNzUtN2ZhNGNkYTMtN2YxYi00Mzg3LWE4ZDktMjY4NzdhMzQyZmUxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODExVDAzMzI1OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgzMDE0NDRmYjZlYjhmZWQ2ODg4MGU1MjMzZDg5YjU5ZDAyODNkZDQ3OWQ1Y2ZkY2FiMTkzOGYxY2EwOTM4NjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.M99RqJgepaaP-jxXvoohUAR4GznBSD-SLdBFeLnVRuk)
Version
**Integration Configuration **
Additional context
N/A
The text was updated successfully, but these errors were encountered: