As the tittle says, I am looking for a way to show some entities only when some conditions are met.
For example, if KODI is ‘off’ then dont show media player in the view.
I actually want it to work like the known_devices.yaml where this applies:
hide_if_away: true
But I want it to work for any entity I want and also for any state I want.
That is a great idea. I didnt know you can hide or show groups by using a service!
Ok, if you dont mind, I have some questions about your automation. Please bear with me!
You are triggering it when HA starts. Why not trigger with the time?
Doesnt that mean:HA starts=true then check datetime then if xmas then show xmasgroup?
Why not when datetime=xmas>show xmasgroup?
As I said I want to hide or show entities. One of my examples is the Mediaplayer entity. When KODI is OFF then I want to hide the entity from the view tab.
Is it possible to do this with only an entity? Not the entire group.
no worries
so for your first question, the reason I do it at HA start is that doing it at datetime=xmas will only trigger at that specific time. When starting HA, entities are either shown or hidden by default (depending on config) and I don’t want to edit my config based on time of year
I’m not sure you can set visibility at entity level, I think it’s only for groups, but nothing stops you from creating a group with only your media player in it…