I like the idea, but this a delicate subject.
One of the main goals i had in mind creating the card, is that it should have very little whistles and bells, so you can make changes fast and the GUI remains mobile friendly.
Since each schedule is a switch in HA, you can already make more advanced automations on top to determine which schedules should be enabled in which period.
The other way around, you can also create schedules that trigger automation or script entities which will have more advanced conditions.
For thermostats specifically i am working on an easier interface to change temperatures.
It will work with time blocks that you can drag to define the time span, and for each block you will be able to define the temperature.
It will roughly look like this:
Ofcourse it is still a big work-in-progress, so it will require some patience from your side.
I am hoping that eventually the GUI becomes so nifty that making adjustments becomes a breeze.
Let’s get back to this topic in a month or so
Thanks for the update, but unfortunately the issue is still there, I’ve tried to remove the whole component and reinstall it but the behavior is still the same. Without switch domain it is working great.
Okay strange.
Reinstalling the component will not solve anything.
Can you check the console log in your browser? There should be a message that scheduler card is at v1.2.3.
If so, then we need to dive deeper
Unfortunately it’s gone back to the original problem with v1.2.3. Lights and switches button shows, but clicking Lights does not show any entities.
Same error in console:
scheduler-card.js:186 Uncaught (in promise) TypeError: Cannot read property 'replace' of undefined
at ds (scheduler-card.js:186)
at scheduler-card.js:468
at Array.map (<anonymous>)
at HTMLElement.getEntities (scheduler-card.js:465)
at HTMLElement.render (scheduler-card.js:408)
at HTMLElement.update (scheduler-card.js:186)
at HTMLElement.performUpdate (scheduler-card.js:148)
at HTMLElement._enqueueUpdate (scheduler-card.js:148)
Again I added a conditional, and most of the light entities showed up, but some had no label. These are in the format light.83afdfe0_898eadff - these are entities from browser_mod component. As thse are auto-generated, they might not have a unique entity ID. Can it be changed to use the name of the device instead?
EN, NL, FR, DE languages are in place.
They should indeed be automatically selected based on the selected language in HA, not by YAML config.
If it doesn’t work for you perhaps your country letters should be mapped to appropriate language.
I’m not sure, HA documentation on this is not very clear.
Let me know if there are problems
Yes, I am restructurizing the code that processes the configuration quite a bit.
Empty labels will be a thing of the past. Indeed the entity_id will be used as a fallback.