Hello,
I’m trying to implement more and more according to instructions, but whenever I want to make it more individual, I quickly reach my limits.
Now I have the following question:
I have created a corridor plan in which I have also shown entities from my robotic lawnmower, for example. In winter the mower is dismantled and therefore the entities are not available, now I would like to hide the entities, for example when I activate a helper “winter operation” or when HA recognizes that the entities are not available. Unfortunately I can’t get the “if” or “state” arguments configured correctly in Yaml. I think this will be easy for the professionals among you. Maybe someone can support me.
Die betroffenen Entitäten sind die letzten im Log
Thanks
the Noblast
type: custom:config-template-card
entities:
- sun.sun
- switch.3d_drucker
- switch.waschetrockner
- switch.stube
- switch.stube_fenster
- switch.aquarium
- switch.stromversorgung_tv
- binary_sensor.zustand_tv
- input_boolean.betrieb_waschmaschine
- input_boolean.winterbetrieb
- sensor.indego_222605169_mower_state
- sensor.indego_222605169_lawn_mowed
card:
type: picture-elements
image: /local/floorplan/Erdgeschoss Nacht.png
style: |
ha-card:first-child {
background: rgba(42, 46, 48, 1)
}
elements:
- type: image
action: none
entity: sun.sun
state_image:
above_horizon: /local/floorplan/Erdgeschoss aus.png
below_horizon: /local/floorplan/transparent.png
tap_action:
action: none
hold_action:
action: none
style:
top: 50%
left: 50%
width: 100%
height: 100%
- type: image
action: none
entity: switch.3d_drucker
hold_action:
action: none
tap_action:
action: none
state_image:
'on': /local/floorplan/Erdgeschoss Kuehlschrank.png
'off': /local/floorplan/transparent.png
unavailable: /local/floorplan/Erdgeschoss Kuehlschrank fehler.png
style:
mix-blend-mode: lighten
top: 50%
left: 50%
width: 100%
height: 100%
- type: image
action: none
entity: binary_sensor.zustand_trockner
hold_action:
action: none
tap_action:
action: none
state_image:
'on': /local/floorplan/Erdgeschoss Trockner.png
'off': /local/floorplan/transparent.png
unavailable: /local/floorplan/Erdgeschoss Trockner fehler.png
style:
mix-blend-mode: lighten
top: 50%
left: 50%
width: 100%
height: 100%
- type: image
action: none
entity: input_boolean.betrieb_waschmaschine
hold_action:
action: none
tap_action:
action: none
state_image:
'on': /local/floorplan/Erdgeschoss Waschmaschine.png
'off': /local/floorplan/transparent.png
unavailable: /local/floorplan/Erdgeschoss Waschmaschine fehler.png
style:
mix-blend-mode: lighten
top: 50%
left: 50%
width: 100%
height: 100%
- type: image
action: none
entity: binary_sensor.zustand_tv
hold_action:
action: none
tap_action:
action: none
state_image:
'on': /local/floorplan/Erdgeschoss TV.png
'off': /local/floorplan/transparent.png
unavailable: /local/floorplan/transparentError.png
style:
mix-blend-mode: lighten
top: 50%
left: 50%
width: 100%
height: 100%
- type: image
action: none
entity: switch.stube
hold_action:
action: none
tap_action:
action: none
state_image:
'on': /local/floorplan/Erdgeschoss Deckenfluter.png
'off': /local/floorplan/transparent.png
unavailable: /local/floorplan/transparentError.png
style:
mix-blend-mode: lighten
top: 50%
left: 50%
width: 100%
height: 100%
- type: image
action: none
entity: switch.stube_fenster
hold_action:
action: none
tap_action:
action: none
state_image:
'on': /local/floorplan/Erdgeschoss Fenster.png
'off': /local/floorplan/transparent.png
unavailable: /local/floorplan/transparentError.png
style:
mix-blend-mode: lighten
top: 50%
left: 50%
width: 100%
height: 100%
- type: image
action: none
entity: switch.aquarium
hold_action:
action: none
tap_action:
action: none
state_image:
'on': /local/floorplan/Erdgeschoss Aquarium.png
'off': /local/floorplan/transparent.png
unavailable: /local/floorplan/Erdgeschoss Aquarium fehler.png
style:
mix-blend-mode: lighten
top: 50%
left: 50%
width: 100%
height: 100%
- type: state-icon
entity: switch.stube
icon: mdi:lightbulb
style:
left: 59.9%
top: 92.1%
'--iron-icon-stroke-color': '#969696'
border-radius: 50%
text-align: center
background-color: rgba(255, 255, 255, 0.3)
tap_action:
action: toggle
- type: state-icon
entity: switch.stube_fenster
icon: mdi:lightbulb
style:
left: 87.2%
top: 71.7%
'--iron-icon-stroke-color': '#969696'
border-radius: 50%
text-align: center
background-color: rgba(255, 255, 255, 0.3)
tap_action:
action: toggle
- type: state-label
entity: sensor.einspeisung_oder_verbrauch
style:
left: 87.2%
top: 66.1%
color: '#000'
border-radius: 50%
text-align: center
background-color: rgba(255, 255, 255, 0.3)
font-size: 11px
font-weight: bold
- type: state-label
entity: sensor.indego_222605169_mower_state
icon: mdi:robot-mower-outline
style:
left: 10%
top: 10%
'--iron-icon-stroke-color': '#969696'
border-radius: 50%
text-align: center
background-color: rgba(255, 255, 255, 0.3)
- type: state-icon
entity: sensor.indego_222605169_mower_state
icon: mdi:robot-mower-outline
style:
left: 5%
top: 10%
'--iron-icon-stroke-color': '#969696'
border-radius: 50%
text-align: center
background-color: rgba(255, 255, 255, 0.3)
- type: state-icon
entity: sensor.indego_222605169_battery_percentage
icon: mdi:battery
style:
left: 20%
top: 10%
icon-color: '#000'
border-radius: 50%
text-align: center
background-color: rgba(255, 255, 255, 0.3)
- type: state-label
entity: sensor.indego_222605169_battery_percentage
icon: mdi:robot-mower-outline
style:
left: 25%
top: 10%
'--iron-icon-stroke-color': '#969696'
border-radius: 50%
text-align: center
background-color: rgba(255, 255, 255, 0.3)
- type: state-label
entity: sensor.indego_222605169_lawn_mowed
icon: mdi:robot-mower-outline
style:
left: 15%
top: 10%
'--iron-icon-stroke-color': '#969696'
border-radius: 50%
text-align: center
background-color: rgba(255, 255, 255, 0.3)
- type: state-icon
entity: sensor.indego_222605169_mower_state
icon: mdi:lightbulb
style:
left: 5%
top: 20%
icon-color: '#000'
border-radius: 50%
text-align: center
background-color: rgba(255, 255, 255, 0.3)
1 post - 1 participant