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

I’ve taken this concept to the extreme. I only keep 4 days in Recorder. And even there, I exclude the majority of my entities, especially those which are “chatty” and experience frequent state changes.

For me, the ideal would be to be able to set the appropriate retention period for each entity individually, but unless and until that happens, I find it convenient to just save the data I want to keep long-term in a text file in CSV format which I can store, analyze and otherwise use external to HA.

3 Likes

Do you think that’s what is causing my issue?

Thanks, bdraco

I appreciate the motivation behind the repair message and the acknowledgement that a little refinement is required. It’s never straightforward to parse SQL without a tokenizer or parser… People may have aliased the table name too :slight_smile:

Looking forward to be able to use these sensors again. The entities appear to have vanished from my setup since the repairs were added.

I marked the repairs as fixed. I reloaded the integration but the entities have not become available.

No, but it does make me wonder what version and installation method of HA you are on.

In the mean time you can avoid the issue by renaming the view to not have entity_id in it if you don’t want to wait for 2023.4.3

1 Like

What’s up with many people switching back from MariaDB to SQLite?

Is there any structural or fundamental issues with MariaDB on 2023.4.x?

When I started HA, I watched few YouTube videos and many suggested to use MariaDB for performance reasons mainly. Is that no longer true?

As far as I understand it:

The performance advantage is pretty much moot now.

However there are still some advantages to having the DB decoupled from HA. You don’t have to wait for the DB to initialise when restarting HA as it runs in its own container. Also you can stop it before making a full backup to ensure there is no chance of data corruption.

Another thing is that I have more than one database in the MariaDB add-on. As well as Home Assistant it keeps my centralised Kodi DB too.

1 Like

Hey Sian, Petro!
Thank you so much! Just discovered not_from and changed my code.
Have a nice day

1 Like

I’m doing exactly the same (already got my SSD). Slightly complicated as my HA is on a Pi4 but running 32 bit and I intend to go to 64 bit as part of my move to an SSD.

Even IOS is easily done: always use the reset Frontend cache in the app settings /error tracking menu.

I can’t understand after all of those years this is not common knowledge.

It is not like we have never needed to update a resource before?

The tricky bit there is the mutual exclusion of these to/from settings.

It’s easy to use when you don’t need another to or from state to trigger off.

If you do however, the conditions are the only way to do so.

1 Like

That and also a sequence which uses an if/else condition which might choose a different action based on previous state etc.

Good job, thanks! :bowing_man:

You assume ios is the app. I talk about Safari. Safari supports multiple tabs so I personally use that mostly on my iPad. On my iPhone the app is the preferred.

Or just have 2 triggers with trigger IDs

Well you have a point there. I use that too…

Even so, you know the drill, and don’t post issues in all repos…

My point would be to have some extra focus on a pinned post and offer some 1-liners for the various platforms.

the issue in that post was to prevent it from triggering wasnt it?
not so much have more than one trigger.

with your solution we can do:

    trigger:
      platform: state
      entity_id:
        - person.marius
      not_to: &un
        - unavailable
        - unknown
      not_from: *un
    condition:
      - >
        {{trigger.to_state is not none and trigger.from_state is not none}}
      - >
        {{trigger.to_state.state != trigger.from_state.state}}

but, with an actual state to be triggered on, the not_to: is no longer possible, and we still need to use something like this:

    trigger:
      platform: state
      entity_id:
        - person.marius
        - abc
      to: home
    condition:
      - >
        {{trigger.to_state is not none and trigger.from_state is not none}}
      - >
        {% set x = ['unavailable','unknown'] %}
        {{trigger.to_state.state not in x and trigger.from_state.state not in x and
          trigger.to_state.state != trigger.from_state.state}}

unless I am missing the point entirely there. these 2 conditions save a lot of trouble in many automations, and even with the latest developments in the syntax, still have their value.

2 Likes

Really not liking the way the UI is going. I don’t mind the look of the new stuff, but hiding functionality behind extra clicks is just terrible for usability. I don’t see why we cant make it pretty and keep it functional. Pretty doesn’t have to be “white space”

13 Likes

I dont mind the new UI, what I do mind is that history is no longer part of the default view in the more info panel. I think if history was added back to the default view it will make many power users happy.

14 Likes

Sorry if it has been already mentioned, searched and could not find an answer… how one knows the DB upgrade / migration finished so I can safely restart HA?

I see this message in the logs:
“Database is about to upgrade from schema version: 35 to: 41”
and then messages about the upgrade to 37 to 41 being done.

But, well after that last upgrade to 41 done message I see messages from recorder about indexes being dropped and to be patient and the last message what about 20 hours ago but no indication if the whole process completed… any way to find out for sure?