2023.4: Custom template macros, and many more new entity dialogs!

Hey @petro, do you have any more info about its return? I saw that Balloob explicitly called out the feature as being intentionally removed, but it was a bit hard to follow the rest.

Nope, I just know that it was removed, then the decision was backtracked sometime later. Mariushvd was having the convo, he might know more.

1 Like

Loving the new dialog for alarms (and covers and fans), but have a question about the configurability of the options shown in the popup.

My issue is “caused” by the fact that the HomeKit Controller integration generically exposes a mode (Night) which my alarm (Abode) does not support.

In the Tile card as well as other alarm cards, I can simply uncheck “Night” mode, and it is no longer shown in the card. However, in the new dialog, all 4 modes are always shown.

I realize the dialog is pulling directly from the entity to populate the modes and isn’t aware of the settings of the card it is popping up from, but wondering if there is any way to control which modes are shown in the popup?

Thanks again to the team for the excellent work.


1 Like

My google calendar wouldn’t retrieve after update, and the option to refresh credentials didn’t work. I completely re-set it up and it seems to be working fine with a strange exception. I have “next events” set up and these seem to be retrieved fine but the calendar itself displays the message: “could not retrieve events for calendars: {list of calendars included}”

I poked through the logs and there are calendar related errors complaining about “expected positive event duration” with a date given. I looked at the date and sure enough, I have notifications with 0 duration for reminders. It seems like calendar entries were being retrieved fine up until this entry, so I changed the stop time on all these and time will tell if this is the fix.

For those monitoring this thread prior to upgrade, it may pay to scrub calendar entries for compliance with what’s listed in breaking changes before actually upgrading.

Hi,
Thanks for your hard work. I’ve read the breaking changes and saw no dealbreakers, so I’ve applied the update.
I have a RPI3, with a SD card, and even if update has been applied 12 hours ago, I’m getting a ERR_CONNECTION_REFUSED error (internal URL) or bad gateway error (nginx/external URL). My database wasn’t so huge (a backup typically weighs 70 MB).
Do I have to wait longer, or has something gone wrong? I haven’t seen any report here or issue on github. Thank you!

That’s funny, I was just about to ask the same regarding this with Ring Alarm via MQTT. It only supports Home, Away and Disarmed, which is fine for the tile as I can deselect Night, Vacation and Custom, none of which do anything, but in the dialog there doesn’t appear to be a way to filter the unused ones out.

1 Like

Thanks for the feedback.

For now we just display the supported modes. But I agree, the alarm can support all this modes you only use few of them. Same for light, You can have lights that support rgb color and you don’t want to display the color but only color temperature.

This issue was already present in the previous more info. As a fix for now, I created a template alarm that control the other one :sweat_smile:

2 Likes

And indeed it does :slight_smile: thanks a lot

I am seeing similar DNS errors. My TP LINK devices are all broken with this core update.


23-04-05 19:35:23.960 ERROR (MainThread) [homeassistant.setup] Setup failed for dhcp: Unable to import component: cannot import name 'QueryMessage' from 'dns.message' (/usr/local/lib/python3.10/site-packages/dns/message.py)
2023-04-05 19:36:19.868 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: dhcp

What is polymer and why should I care?

out of curiosity, what do you get if you go into your custom_components directory and run:

grep --include manifest.json -r dns

I rolled my own, with several other key features that provides a poor mans role-based access control mech

Nice! Do you have it posted somewhere? :slight_smile:

Thanks, we’ll track a fix in Google Calendar integration issue after Core-Update to 2023.4 · Issue #90952 · home-assistant/core · GitHub

1 Like

FYI, my scripts with import requests appear to work.

  1. Can custom templates be used inside blueprints?
    btw, currently secrets cannot.
    Update 08.04.23: yes, macros may be used in blueprints.

  2. Currently the “custom_templates” folder seems to be located ONLY in “/config”. But many people have packages located in a separate folder like “/config/conf” (btw - blueprints MUST be located in “/config/blueprints” ). If custom templates CANNOT be used inside blueprints - then these people may want to keep this “custom_templates” folder inside that “conf folder”.
    Update 08.04.23: these macros may be used in Lovelace & blueprints too, this makes them “universal” (i.e. not only related to “configuration”), so no need to place these macros inside some particular “conf folder”.

  3. Also, it would be great to have a possibility to organize “.jinja” files in folders inside that “custom_templates” folder.
    Update 08.04.23: I may create 4 jinja-files for different needs (like “time_utils.jinja”, “lovelace_utils.jinja”), each file may contain plenty of macros - so there is no need to create subfolders.

  4. Also, calling “homeassistant.reload_custom_templates” service should be added here as a separate entry:
    image

My database actually increased in size, form 2200MB to 2400MB :joy:

but one question, I have a fan with 4 steps(0,25,50,75,100 as it is now), and I would still like to use those new “tile” cards for this,
Is there a way around this, or am I in bad luck?

By the way directories are divided by / not \. Windows alone uses \.

Correct, let’s consider them as typos )
Fixed, thank you!

Same problem here, I tried removing and re-adding the home connect integration and credentials, nothing works, the integration is broken.