View motion.yaml
This file contains 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
motion: | |
custom_fields: | |
motion: | | |
[[[ | |
return states[variables.motion].state == 'on' | |
? '<ha-icon icon="mdi:motion-sensor" style="width:100%;display:flex;color:var(--state-icon-active-color);"></ha-icon>' | |
: '<ha-icon icon="mdi:motion-sensor-off" style="width:100%;display:flex;color:var(--state-icon-color);"></ha-icon>'; | |
]]] | |
styles: | |
custom_fields: |
View progress_bar.yaml
This file contains 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
progress_bar: | |
styles: | |
custom_fields: | |
progress: | |
- background-color: var(--progress-bar-background-color) | |
- position: absolute | |
- left: 0% | |
- top: 73.9% | |
- height: var(--progress-bar-height) | |
- width: 100% |
View aired_today_playlist.py
This file contains 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
""" | |
Create a Plex Playlist with what was aired on this today's month-day, sort by oldest first. | |
If Playlist from yesterday exists delete and create today's. | |
If today's Playlist exists exit. | |
""" | |
import operator, time | |
from plexapi.server import PlexServer | |
import requests |