Climate Scheduler

Edit: It’s broken so I deleted the release, if you installed in the window this was available for please downgrade to 1.14.12 until I’m able to fix my screwup.

# v1.15.0 Released!
## Highlights:
- Mobile device support!
- New Timeline system supports mobile devices
- This is just the initial release, further improvements are needed for the mobile experience
- Profiles now global
- This means you can have an Away profile and apply it to every schedule rather than creating duplicates in each schedule
- Profile editor moved to global scope too so changing a profile there applies to all schedules that have it active
- If you have an area with a common profile but want to create exemptions for specific rooms based on presence you can. You could have an “Upstairs - Home” profile for example that includes bedrooms and bathroom but excludes offices or studies. Those could be in their own schedules and set to Away by default but switched to “Upstairs - Home” when triggered

## BREAKING CHANGE FOR PROFILE AUTOMATIONS
- Profiles have been moved from the schedule to global level, this means if you have an automation that sets a profile by name that name will have changed
- Existing profiles will be migrated and renamed as “Schedule Name - Profile Name” in the global context, you will need to update your automations to handle these new names
- Existing data will be preserved in place but marked as legacy to enable downgrading to 1.14.* builds if needed

The release is avilable in HACS and on github here.

I had a naming convention with identical names for profiles in each schedule, and some automations based on it. The profiles have of course all been renamed now, so the automations aren’t working anymore. I tried copying schedules around to get back what I had, but that isn’t easy, as the selection of profiles for editing still seems as broken as it was. I don’t know… I still like the idea you had, but I think I need to move on to a different solution, at least for the time being. Wish you luck.

You should be able to downgrade to 1.14.12 without issue, I made sure all the data was left in place to make that possible. Looking at the stats I never had that many folk install the preview builds to test so to a certain degree just have to release and see what the response is.

If the profile editor isn’t working then I need to know about it so if you could document what isn’t working before downgrading or using another solution let me know and I’ll see what I can do.

Otherwise if I have a revolt on my hands I could look in to implementing schedule and global profiles and give the user the option which they’d prefer. It shouldn’t be difficult to extend the global profile system to include a “schedule” tag or similar.

Either way, if you could share what isn’t working I can have a look. With a sample size of Me it’s always difficult to find the edge cases, there are a lot of features I don’t use that I added at request so definitely in need of feedback.

We had a small conversation about the issue a little while ago: Active profile vs edited profile? · kneave/climate-scheduler · Discussion #132 · GitHub

I think I’m still editing the active profile and not the one that I select for editing. At least when I try to copy + paste, things are not ending up in the profile where I want them. And the schedule mode seems to be dropped when copying, so between weekday and weekend schedule, which one will the destination schedule get? I haven’t found a system what copy + paste is actually doing.

I know you are doing this in your spare time, for free, and I’m impressed how much time and effort you are putting into it. You absolutely have to go forward and release new stuff, you can’t wait for people to test. I’m lazy testing pre-releases myself.

Yes, I can downgrade, but you won’t be able to backport future bug fixes, so that’s just a short-term solution for me. I need to put something working in place tonight, it’s frickin cold outside… otherwise WAF will hit hard. :slight_smile: So yes, I will downgrade now. I’ll think about where I will go from there.

1 Like

Just to confirm, are you seeing the profile editor in its new location?

Interesting… no I’m not…

The version tag at the bottom is also still the old one.

I have updated and restarted HA.

Profiles have been renamed as you announced. Just reloaded the integration and restarted HA again - no change. Still can’t see the profile editor where it is in your screenshot.

I reinstalled version 1.15.0 and restarted, now I get the same picture you have. Back testing now. No idea where and why that got stuck the first time around. There was nothing in the logs.

So I’m getting a mixed picture here. Sometimes my edits of schedules stick and are saved, at other times they aren’t. Now the editor has disappeared altogether.

The browser cache has its uses but also a bloody menace! If you press f12 to open dev tools you should be able to right click on the refresh button you should see an option to empty the cache and force a refresh

I cleared the browser cache before I started testing, but maybe need to do it more often when I’m editing. The editor reappears when I toggle active profiles. But really I can’t get the editor to reliably save a schedule. Some just remain unchanged, despite autosave, save button, cache deletion.

I’ve pulled the release as I’ve just found a bug that results in profiles being deleted if you switch day/weekday modes. I’d recommend folk downgrade for now and apologies for the epic screwup on my part.

and I’ve managed to completely nuke my profiles. Time for me to downgrade myself and hopefully recover them :sweat_smile:

1 Like

Are you connecting to the HA machine from the same network or remotely? The only thing I could think of is there’s something slowing it all down somewhere and it’s timing out trying to save

I’m connecting locally on Gigabit Ethernet.

Once I figure out how to un-f8^k my mess of profiles I’ll see if I can add in more instrumentation in debug mode to see if we can track this down

Would you be able to give me a hint what I need to touch to rename the profiles back to their original? They kept their “[legacy]” suffix after rollback.

You should be able to rename them using the Profile editor under settings, at very worst case it’s all in one big text file you can access via the command line or samba if you have that enabled.

Thanks, found the pencil and also the file.

v1.15.1 Released!

v1.15.0 had a bug that deleted profiles when switching between 24hr/weekday/7day modes. I believe I’ve fixed it but I believed it worked before…

If anyone hits any issues please raise them on GitHub.

Highlights:

  • Mobile device support!
  • New Timeline system supports mobile devices
  • This is just the initial release, further improvements are needed for the mobile experience
  • Profiles now global
  • This means you can have an Away profile and apply it to every schedule rather than creating duplicates in each schedule
  • Profile editor moved to global scope too so changing a profile there applies to all schedules that have it active
  • If you have an area with a common profile but want to create exemptions for specific rooms based on presence you can. You could have an “Upstairs - Home” profile for example that includes bedrooms and bathroom but excludes offices or studies. Those could be in their own schedules and set to Away by default but switched to “Upstairs - Home” when triggered

BREAKING CHANGE FOR PROFILE AUTOMATIONS

  • Profiles have been moved from the schedule to global level, this means if you have an automation that sets a profile by name that name will have changed
  • Existing profiles will be migrated and renamed as “Schedule Name - Profile Name” in the global context, you will need to update your automations to handle these new names
  • Existing data will be preserved in place but marked as legacy to enable downgrading to 1.14.* builds if needed

The release is avilable in HACS and on github here.