Adopted Awtrix Pixelclock to automations + clock effects.

This commit is contained in:
2023-11-02 21:47:33 +01:00
parent 671c9d6b77
commit 48338c9233
7 changed files with 1657 additions and 11 deletions

View File

@@ -123,6 +123,12 @@
message: 4 20 lodere es, Lustknabe
target:
entity_id: tts.piper
- service: mqtt.publish
data:
qos: 0
retain: false
topic: awtrix_b8658c/notify
payload: '{"text": "420, lodere es, Lustknabe!"}'
mode: single
- id: '1623911524804'
alias: TV Anti-Reflexion (undo)
@@ -192,14 +198,10 @@
target:
device_id: 68868390eda35e969ec60a13020f2407
data: {}
- delay:
hours: 0
minutes: 15
seconds: 0
milliseconds: 0
- service: light.turn_on
data: {}
target:
device_id: 3c86ddd39979139f29645308815c0271
entity_id: light.awtrix_b8658c_matrix
mode: single
- id: '1624820688449'
alias: 'Anruf: Beim Klingeln grün blinken'
@@ -219,13 +221,25 @@
entity_id: person.marcus_scholz
state: home
action:
- service: light.turn_on
data:
rgb_color:
- 9
- 255
- 0
target:
entity_id: light.awtrix_b8658c_indicator_1
- service: scene.create
data:
scene_id: wled_last_state
snapshot_entities:
- light.wohnzimmer_vorne
- light.wohnzimmer_hinten
- light.kuche
- light.wohnzimmer_hinten
- light.wohnzimmer_vorne
- select.kuche_color_palette
- select.wohnzimmer_vorne_color_palette
- select.wohnzimmer_hinten_color_palette
- wohnzimmer vorne
- service: scene.turn_on
target:
entity_id: scene.grun_blinken
@@ -239,6 +253,15 @@
target:
entity_id: scene.wled_last_state
data: {}
- delay:
hours: 0
minutes: 0
seconds: 15
milliseconds: 0
- service: light.turn_off
data: {}
target:
entity_id: light.awtrix_b8658c_indicator_1
mode: single
- id: '1625481640348'
alias: 'Anruf: Beim Telefonieren Musik pausieren'
@@ -476,13 +499,22 @@
data:
cache: true
media_player_entity_id: media_player.raspiaudio_muse_luxe
message: '{% set t = now().hour %} {% set m = ''Morgen'' if t < 12 else ''Nachmittag''
if t < 18 else ''Abend'' %} Guten {{m}} Marcus. Draußen sind es {{states.sensor.temperatur_aussen.state}}
Grad Celsius und es ist {{states.sensor.time.state}}
message: '{{message}}
'
target:
entity_id: tts.piper
enabled: true
- service: mqtt.publish
data:
topic: awtrix_b8658c/notify
payload: '{"text": "{{message}}", "icon": "clockcolor", "duration": 16}'
variables:
message: '{% set t = now().hour %} {% set m = ''Morgen'' if t < 12 else ''Nachmittag''
if t < 18 else ''Abend'' %} Guten {{m}} Marcus. Draußen sind es {{states.sensor.temperatur_aussen.state}}
Grad Celsius und es ist {{states.sensor.time.state}}
'
mode: single
- id: '1683370485273'
alias: TTS Benachrichtigung an ein Smartphone senden
@@ -593,3 +625,82 @@
Grad niedriger als die Wohnungstemperatur. Lass die Frischluft herein!
'
- id: '1698873510271'
alias: Awtrix Laufender Spotify Song
description: ''
use_blueprint:
path: spotify-song-notification/GKXydoDmOpjL.yaml
input:
awtrix_light: a6d24e7d93c114723bf525e9eac1c2df
media_player: media_player.spotify_marcus_scholz
icon_in: spotify
- id: '1698873776237'
alias: 'Awtrix: zufälliger Effekt'
description: ''
use_blueprint:
path: AWTRIX/awtrix_random_effect.yaml
input:
awtrix_light: a6d24e7d93c114723bf525e9eac1c2df
effect_list:
- MovingLine
- Plasma
- Matrix
- SwirlIn
- ColorWaves
- TwinklingStars
- Ripple
- PingPong
- Checkerboard
- PlasmaCloud
- Pacifica
- LookingEyes
- SwirlOut
- TheaterChase
- Snake
- Fireworks
- BrickBreaker
- Radar
- id: '1698948541073'
alias: 'Awtrix: Kalenderbenachrichtigung'
description: ''
use_blueprint:
path: Brunas/awtrix_calendar_notifier.yaml
input:
awtrix:
- a6d24e7d93c114723bf525e9eac1c2df
calendar: calendar.privat
push_icon: '2'
- id: '1698949221372'
alias: 'Awtrix: Solarenergie Monitor'
description: ''
use_blueprint:
path: AWTRIX/solar_production.yaml
input:
awtrix:
- a6d24e7d93c114723bf525e9eac1c2df
power_source: sensor.balkonkraftwerk_power
skip_if_zero_watts: true
- id: '1698954553138'
alias: 'Awtrix: Jahresfortschirtt'
description: Jahresfortschritt in %
trigger:
- platform: time_pattern
hours: '*'
minutes: 0
condition: []
action:
- service: mqtt.publish
data:
payload: '{# Get current timestamp #} {%- set now = now() -%} {# Start of current
year #} {%- set startOfYear = now.replace(year=now.year, month=1, day=1, hour=0,
minute=0, second=0, microsecond=0) -%} {# Determine end of current year #}
{%- set endOfYear = startOfYear.replace(month=12, day=31, hour=23, minute=59,
second=59, microsecond=999999) -%} {# Calculate progress #} {%- set total
= as_timestamp(endOfYear) - as_timestamp(startOfYear) -%} {%- set current
= as_timestamp(now) - as_timestamp(startOfYear) -%} {%- set progress = ( current
/ total * 100 ) | round(0, "floor", 0) -%} {# Output #} { "text": "{{ progress
}} %", "icon": "y2023"}'
topic: awtrix_b8658c/custom/yearprogress
qos: 0
retain: false
mode: single