Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 102644

Lovelace doesn't show button state

$
0
0

@DenisSh wrote:

I can’t understand what’s wrong with this code:

- entity: switch.sw_two
    image: 'http://dshgmbh.ru/uploads/light_bulb_off.png'
    state_filter:
      'off': brightness(80%) saturate(0.8)
      'on': brightness(130%) saturate(1.5) drop-shadow(0px 0px 10px gold)
    state_image:
      'on': 'http://dshgmbh.ru/uploads/light_bulb_on.png'
    style:
      left: 78%
      padding: 10px
      top: 65%
      width: 7%
    tap_action:
      action: toggle
    type: image
  - entity: sensor.kitchen_wall_button
    image: 'http://dshgmbh.ru/uploads/light_bulb_off.png'
    state_filter:
      'off': brightness(80%) saturate(0.8)
      'on': brightness(130%) saturate(1.5) drop-shadow(0px 0px 10px gold)
    state_image:
      'on': 'http://dshgmbh.ru/uploads/light_bulb_on.png'
    style:
      left: 85%
      padding: 10px
      top: 25%
      width: 7%
    type: image

The switch -sw_two - work fine, but sensor - kitchen_wall_button doesn’t change image on a floor plane. (both the data goes and come back to same device).
The history view for kitchen button show that state changed.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 102644

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>