Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: 'custom:vertical-stack-in-card'
- cards:
- - type: 'custom:button-card'
- entity: device_tracker.eml_l29
- entity_picture: /local/facesam.png
- name: Sam
- show_entity_picture: true
- state:
- - entity_picture: /local/facesam.png
- styles:
- card:
- - height: 100px
- entity_picture:
- - width: 45%
- - opacity: 0.5
- - padding-top: 10px
- name:
- - font-size: 17px
- custom_fields:
- notification:
- - background-color: |
- [[[
- if (states['sensor.car_status'].state == 'Home')
- return "green";
- return "#AD5C5C";
- ]]]
- - border-radius: 20%
- - position: absolute
- - left: 73%
- - top: 8%
- - height: 24px
- - width: 24px
- - font-size: 8px
- - line-height: 20px
- custom_fields:
- notification: |
- [[[
- return `<ha-icon
- icon="mdi:car"
- style="padding-top: 1px; display: block; width: 20px; height: 20px; color: white; margin: auto; position: relative;">
- </ha-icon>`
- ]]]
- value: 'off'
- - color: white
- entity_picture: /local/facesam.png
- operator: default
- styles:
- card:
- - height: 100px
- entity_picture:
- - width: 45%
- - padding-top: 10px
- name:
- - font-size: 17px
- custom_fields:
- notification:
- - background-color: |
- [[[
- if (states['sensor.car_status'].state == 'Home')
- return "green";
- return "#AD5C5C";
- ]]]
- - border-radius: 20%
- - position: absolute
- - left: 73%
- - top: 8%
- - height: 24px
- - width: 24px
- - font-size: 8px
- - line-height: 20px
- custom_fields:
- notification: |
- [[[
- return `<ha-icon
- icon="mdi:car"
- style="padding-top: 1px; display: block; width: 20px; height: 20px; color: white; margin: auto; position: relative;">
- </ha-icon>`
- ]]]
- - type: horizontal-stack
- cards:
- - type: 'custom:button-card'
- entity: input_boolean.ground_floor_occupancy
- icon: 'mdi:doorbell'
- name: false
- show_name: false
- show_state: false
- state:
- - icon: 'mdi:home-floor-g'
- styles:
- card:
- - height: 50px
- icon:
- - width: 30px
- - opacity: 0.5
- - padding-bottom: 15px
- - padding-left: 10px
- value: 'off'
- - color: white
- icon: 'mdi:home-floor-g'
- operator: default
- styles:
- card:
- - height: 50px
- icon:
- - width: 30px
- - padding-bottom: 15px
- - padding-left: 10px
- - type: 'custom:button-card'
- entity: input_boolean.first_floor_occupancy
- icon: 'mdi:doorbell'
- name: false
- show_name: false
- show_state: false
- state:
- - icon: 'mdi:home-floor-1'
- styles:
- card:
- - height: 50px
- icon:
- - width: 30px
- - opacity: 0.5
- - padding-bottom: 15px
- value: 'off'
- - color: white
- icon: 'mdi:home-floor-1'
- operator: default
- styles:
- card:
- - height: 50px
- icon:
- - width: 30px
- - padding-bottom: 15px
- - type: 'custom:button-card'
- entity: input_boolean.second_floor_occupancy
- icon: 'mdi:doorbell'
- name: false
- show_name: false
- show_state: false
- state:
- - icon: 'mdi:home-floor-2'
- styles:
- card:
- - height: 50px
- icon:
- - width: 30px
- - opacity: 0.5
- - padding-bottom: 15px
- - padding-right: 10px
- value: 'off'
- - color: white
- icon: 'mdi:home-floor-2'
- operator: default
- styles:
- icon:
- - width: 30px
- - opacity: 0.9
- - padding-bottom: 15px
- - padding-right: 10px
- card:
- - height: 50px
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement