Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- entity: input_boolean.turn_off_screen
- icon: 'mdi:monitor'
- show_icon: true
- show_name: false
- styles:
- card:
- - width: 55px
- - height: 55px
- - margin: 10px
- - border-radius: 15px
- - box-shadow: |
- [[[ return states['sun.sun'].state == 'below_horizon'
- ? '-5px -5px 8px rgba(50, 50, 50, .2), 5px 5px 8px rgba(0, 0, 0, .08)'
- : '-4px -4px 8px rgba(25, 255, 255, .5), 5px 5px 8px rgba(0, 0, 0, .03)';
- ]]]
- - background-color: var(--primary-background-color)
- icon:
- - color: var(--primary-text-color)
- state:
- - value: 'on'
- styles:
- card:
- - box-shadow: |
- [[[ return states['sun.sun'].state == 'below_horizon'
- ? 'inset -3px -3px 5px rgba(50, 50, 50, .5), inset 3px 3px 5px rgba(0, 0, 0, .3)'
- : 'inset -3px -3px 5px rgba(255, 255, 255, .65), inset 3px 3px 5px rgba(0, 0, 0, .035)';
- ]]]
- icon:
- - color: var(--paper-item-icon-active-color)
- tap_action:
- action: call-service
- service: script.toggle
- service_data:
- entity_id: script.my_computer_displays_off
- haptic: light
- hold_action:
- action: more-info
- haptic: medium
- type: 'custom:button-card'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement