This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias: 💡 Belysning vardagsrum rörelse | |
| description: '' | |
| trigger: | |
| - platform: state | |
| entity_id: binary_sensor.occupancy_livingroom_motion | |
| to: 'on' | |
| id: 'on' | |
| - platform: state | |
| entity_id: binary_sensor.occupancy_livingroom_motion | |
| to: 'off' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - sensor: | |
| - name: "Next birthday" | |
| state: > | |
| {{ state_attr('calendar.fodelsedagar_fodelsedagar','message') |regex_replace(find='🎁 ', replace='', ignorecase=False)|truncate(35, True, '...',0) }} | |
| attributes: | |
| days_text: > | |
| {% set start_time = state_attr('calendar.fodelsedagar_fodelsedagar', 'start_time') %} | |
| {% set end_time = state_attr('calendar.fodelsedagar_fodelsedagar', 'end_time') %} | |
| {% if start_time != None %} | |
| {% set time = as_timestamp(start_time) | timestamp_custom('%H:%M') %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| custom_card_filikun_calendar: | |
| template: | |
| - icon_info_filikun_calendar | |
| name: "[[[ return entity.state != '' ? entity.state : entity.entity_id ]]]" | |
| label: "[[[ return entity.attributes.days_text != '' ? entity.attributes.days_text : entity.entity_id ]]]" | |
| icon_info_filikun_calendar: | |
| color: var(--google-grey) | |
| show_icon: true | |
| show_label: true |