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

Behaviour of state-icon after update to version 0.105

$
0
0

@RedWheiler wrote:

After updating to 0.105 my floorplan got messed up, anyone knows what to do with this?

On my floorplan, to get a visualisation off my lights, I have 2 entities right over each other like this:

boxes

The small box is where to tap to activate/deactivate the light. The bigger box is to show the visualisation (ofcourse the red lines are normally not visible), or the “lights” on the floorplan.

Example for the small box in my raw editor:

      - entity: light.eetkamer
        image: /local/transpa.png    # I only a place where to tap on the screen to turn on/off, so a transparant picture)
        style:
          left: 73%
          top: 30%
          tap_action:
            action: toggle              
          transform: 'scale(0.7,0.7)
        tap_action:
          action: toggle
        type: image

Example of the bigger red-box in raw:

      - entity: light.eetkamer_3 #it's the same entity, but different number for various reasons...
        friendly_name: Eetkamer
        style:
          left: 67.5%
          top: 31.3%
          transform: 'scale(2,2)'
          border: 1px solid red
        tap_action:
          action: toggle
        type: state-icon

Example of the bigger red-box in my “customize.yaml”:

light.eetkamer_3:
  friendly_name: Eetkamer
  templates:
    entity_picture:
      if (state === "off") return '/local/transpa.png'; # So, transparent when off
      return '/local/ltbl.png';  # Shows a "light" when on

Now (since the update) when pressing the small box I get this image when the light is on:

aan

And a solid grey circle when it’s off.

But when i click somewhere else on the picture (after activating the light), the solid grey circle will disappear, and all looks like before the update:

aan

You almost can’t see but the “yellow light” gets out of the small box (it’s the size of the big box)

So it seems it’s a “problem” with the state-icon’s background or something?
Any suggestion on an easy fix? Cause I have a lot of entities on my floorplan with this problem.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



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