Firstly, I feel the need to always apologise when asking on here, but I am still new to HA and just cannot get to grips with it. I see something I like, try to mirror it, fail and get completely stuck by the documentation then have to come here.
So here goes. I would like a card that has a picture of me when I am home, a different picture when I am away and the status of myself ie Home or Away (I will add other people later but for now…)
So I have presence detection working using my iphone. It knows I am at work currently.
I thought this would work:
- type: picture-glance title: Home entity: - device_tracker.matts_iphone state_image: "Away": /local/Matt_Away.png "Work": /local/Matt_Home.png "Home": /local/Matt_Home.png
But of course it doesnt, just says invalid config on the lovelace UI screen.
my images are in my www folder:
What have I done wrong this time?
I wanted this: