I have a group that shows my family devices and their travel times to home using the google travel time sensor. What I want to do is hide the travel time sensors if that person is home.
My first thought was to put each travel time sensor into its own group and then use automations to use group.set_visibility, however, because the travel time sensor is in a group, the group state always shows “unknown” when it’s showing. Clicking the group shows the sensor info inside and it has the correct state. I’ve been trying to figure out how to get the group state to mirror the state of the single sensor inside, but not sure how to do that.
My second thought was to just set the hidden state on the sensor (like you can do in customize) with an automation. However, I can’t figure out how to set the state of a sensor with an automation either.
Any ideas how to achieve the behaviour I’m going for?