I’m monitoring my network with nmap. I’m trying to make entity card with devices connected to network and devices not connected (different color). I also want to see IP address instead ‘home’ , ‘not_home’. I almost did it but instead of entities I see cards inside card. Doas anybody know how can I fix it?
Hello,
I’m quite new to HA and started with integrating my Homematic devices and building some smart Lovelace cards.
Currently I’m working on an auto-entity-card, which shows all open windows with their window_state.
I’d like to get the window_state in red color in case the window is open. Is the window not opened it should stay white.
After researching a bit I found this threat which I adopted to my needs, but unfortunately the styling doesn’t work in my card. The needed card-mod template is installed.
I would very much appreciate, if someone could point me to the error in the code and subsequently to a solution.
E.g. one question in my mind: when to use config.entity vs. ‘this.entity_id’
Thanks in advance.
It works exactly as expected with ‘this.entity_id’ - but strangely only inside the Firefox browser.
Inside the HA App the font color doesn’t change.
I also tested the code without quotes - as you suggested - but then the code is not working in the browser and in the app neither.
Hi petro,
I use the IOS Home Assistant App for iPhone and iPad - both ver. 2020.6.2.
But I can’t explain how, because I didn’t change anything.
Today both Apps show the correct font format of the window state.
So, this problem is solved.