Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- color: auto
- color_type: card
- entity: binary_sensor.drzwi_balkon_contact
- hold_action:
- action: more-info
- icon: 'mdi:door'
- size: 50%
- show_label: true
- state:
- - color: white
- styles:
- card:
- - animation: blink 2s ease infinite
- - color: 'rgb(255, 0, 0)'
- value: 'on'
- - color: 'rgb(255, 255, 255)'
- value: 'off'
- styles:
- grid:
- - grid-template-areas: '"t" "i" "n"'
- - grid-template-rows: min-content 1fr min-content
- - grid-template-columns: 1fr
- card:
- - height: 95px
- - width: 95px
- label:
- - font-size: 14px
- name:
- - font-size: 14px
- custom_fields:
- t:
- card:
- type: 'custom:button-card'
- name: Timer
- entity: binary_sensor.drzwi_balkon_contact
- margin: none
- show_name: false
- show_icon: false
- show_state: true
- styles:
- card:
- - box-shadow: none
- - font-size: 12px
- state:
- - color: |
- [[[
- if (states['sun.sun'].state == 'below_horizon')
- return "white";
- else
- return "red";
- ]]]
- type: 'custom:button-card'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement