So I want to add a card that displays travel time, and I’d like it to be conditional so that if I’m at home (before 10am) it displays a card with information on travel to work (travel time, weather at work, etc). If I’m at work (say, between 11am and 6pm, and my car is located in work_zone), then show me weather at home, travel time, etc.
and then I want the travel time card to either display home->work or work->home, but can’t really figure out how to implement the conditional card. what am i missing?
Edit: just to clarify, I replaced the example condition with blah since I haven’t set up the sensor for time as it seems while time works as a condition in other places, it doesn’t work for this.
what you need to do is to create 2 cards, and have them display (= group.set_visibility to true/false) depending on your device_tracker location (= automation that triggers based on your device_tracker)
I hope I’ve given you enough to get started.
I personally prefer receiving pointers and do it myself for that sense of achievement, but if you need more help let me know…
Thanks, I also prefer to figure it out myself, but when googling doesn’t help, sometimes you gotta get pointed in the right direction, which you’ve done @petro Thanks, I found out that these are for lovelace UI, which I thought WAS the original UI, but found out via another question last night that it’s the new UI. Basically I was trying to implement a lovelace feature in classic UI, that’s why it wasn’t working out. I think the documentation could use some help, I might try updating it and submitting a PR.