Advertisement
JLindvig

Untitled

May 28th, 2022 (edited)
1,588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.94 KB | None | 0 0
  1. type: picture-elements
  2. #entity: binary_sensor.flow_switch
  3. image: /local/Billeder/Pool/Pool.jpg
  4. state_filter:
  5.   "off": blur(2px) grayscale(100%)
  6. #panel: true
  7. elements:
  8.   - type: state-label
  9.     entity: binary_sensor.frost_pool
  10.     prefix: "Frostbeskytelse "
  11.     style:
  12.       background-color: rgba(0,0,0,0.4)
  13.       color: white
  14.       height: 34px
  15.       left: 0
  16.       top: "-3px"
  17.       padding-left: 30px
  18.       transform: none
  19.       width: 100%
  20.  
  21.   - type: conditional
  22.     conditions:
  23.       - entity: binary_sensor.frost_pool
  24.         state: "off"
  25.     elements:
  26.       - type: custom:button-card
  27.       - entity: binary_sensor.frost_pool
  28.         icon: mdi:snowflake
  29.         style:
  30.           color: white
  31.           left: 0
  32.           top: "-5px"
  33.           transform: none
  34.           z-index: 1
  35.         type: state-icon
  36.  
  37.   - type: conditional
  38.     conditions:
  39.       - entity: binary_sensor.flow_switch
  40.         state: "on"
  41.     elements:
  42.       - type: state-label
  43.         entity: sensor.gastemp_2
  44.         attribute: null
  45.         prefix: "@ "
  46.         style:
  47.           color: white
  48.           left: 155px
  49.           top: "-3px"
  50.           transform: none
  51.  
  52.   - type: conditional
  53.     conditions:
  54.       - entity: binary_sensor.frost_pool
  55.         state: "on"
  56.     elements:
  57.       - type: icon
  58.         icon: mdi:shield-alert
  59.         style:
  60.           color: yellow
  61.           left: 8px
  62.           top: 3px
  63.           transform: none
  64.  
  65.   - type: conditional
  66.     conditions:
  67.       - entity: binary_sensor.flow_switch
  68.         state: "on"
  69.       - entity: binary_sensor.kompressor
  70.         state: "off"
  71.     elements:
  72.       - type: icon
  73.         entity: switch.varmepumpe
  74.         icon: mdi:fire
  75.         style:
  76.           color: white
  77.           right: 150px
  78.           top: 10px
  79.           transform: none
  80.         tap_action:
  81.           action: toggle
  82.           confirmation:
  83.             text: Are you sure? Heating the pool is expensive!
  84.  
  85.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement