🌭
- GitHub Staff
- https://zackfern.me
- @zackfern@xoxo.zone
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
# Add this to your scripts.yaml file | |
join_playing_sonos: | |
description: "Make a Sonos spaker join whichever speaker is current playing." | |
fields: | |
target: | |
description: "Entity ID of the Sonos which you'd like to make join the group" | |
example: "media_player.office" | |
variables: | |
group_owner: '{{ state_attr((integration_entities("sonos") | select("is_state", "playing") | first), "group_members") | first }}' |
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
Time::DATE_FORMATS[:ymd] = "%F" # 2023-01-01 | |
Time::DATE_FORMATS[:mdy] = "%D" # 01/01/23 | |
Time::DATE_FORMATS[:human] = "%B %d, %Y" # January 01, 2023 | |
Time::DATE_FORMATS[:time_12] = "%I:%M %p" # 01:30 PM |
OlderNewer