lukevink / hass-config-lajv

Home Assistant Configuration
1.19k stars 199 forks source link

Problem with state_icon. state_label #7

Closed dannymertens closed 4 years ago

dannymertens commented 4 years ago

Hi very strange problem, if I want to use a state icon and/or state label then nothing happens, in my previous floorplan, entity card you can see the updates but not on the version I build from your example, so probable something related to this?

Any idea what I do wrong here?

Using everywhere the same code

          - entity: binary_sensor.window_door_sensor
            style:
              left: 19%
              top: 35%
              '--iron-icon-height': 50px
              '--iron-icon-width': 50px
              '--paper-item-icon-active-color': red
            tap_action:
              action: none
            type: state-icon

A short video that makes thing more clear I hope?

https://dmertens.stackstorage.com/s/YT9cPfv5axFm1sa

Thanks!

dannymertens commented 4 years ago

OK lets say I'm stupid because I forgot off course to add all the entities in the template card, after this it works great, my apologies for my stupidity and thanks for the great work you did to enable us non dev wizards to have a great looking and very functional dashbaord!!!