Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: custom:button-card
- entity: binary_sensor.run_pompa_acs
- color_type: card
- color: rgb(66, 134, 244)
- name: Acs
- custom_fields:
- batteria: |
- [[[
- return `${states['sensor.energia_consumo_kwh_pompa_acs_oggi'].state}<br>kwh`
- ]]]
- t_alta: |
- [[[
- return `${states['sensor.acs_temp_alta'].state}°`
- ]]]
- t_bassa: |
- [[[
- return `${states['sensor.acs_temp_bassa'].state}°`
- ]]]
- state:
- - value: 'on'
- color: orange
- icon: mdi:water
- - value: 'off'
- color: lightgreen
- icon: mdi:water-off
- styles:
- grid:
- - grid-template-areas: '"t_alta i batteria" "t_bassa i batteria" "n n n"'
- - grid-template-columns: 1fr min-content 1fr
- - grid-template-rows: min-content min-content 1fr
- custom_fields:
- batteria:
- - margin-top: '-5px'
- - margin-right: 20px
- - text-align: end
- - font-size: 18px
- - font-weight: 800
- - color: var(--text-color-sensor)
- t_alta:
- - margin-top: '-5px'
- - margin-left: 20px
- - text-align: start
- - font-size: 18px
- - font-weight: 800
- - color: var(--text-color-sensor)
- t_bassa:
- - margin-top: '-5px'
- - margin-left: 20px
- - text-align: start
- - font-size: 18px
- - font-weight: 800
- - color: var(--text-color-sensor)
- name:
- - font-weight: normal
- - font-size: 24px
- - font-weight: 400
- card:
- - font-size: 5px
- - font-weight: bold
- icon:
- - color: green
- - width: 30px
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement