Add compact calendar feed to e-paper display + HA
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
name: Sun Setting Template
|
||||
state: '{{ as_timestamp(states.sun.sun.attributes.next_setting) | timestamp_custom
|
||||
(''%H:%M'') }}'
|
||||
|
||||
- name: "power_other"
|
||||
unique_id: '5579422933393'
|
||||
unit_of_measurement: "W"
|
||||
@@ -79,6 +80,35 @@
|
||||
attributes:
|
||||
last_reset: '1970-01-01T00:00:00+00:00'
|
||||
|
||||
# Compact calendar feed for the e-paper display. The actual event data lives in
|
||||
# the `entries` attribute, which ESPHome reads as a text sensor.
|
||||
- trigger:
|
||||
- trigger: homeassistant
|
||||
event: start
|
||||
- trigger: time_pattern
|
||||
minutes: /15
|
||||
action:
|
||||
- action: calendar.get_events
|
||||
target:
|
||||
entity_id:
|
||||
- calendar.tkrz_kalender
|
||||
- calendar.privat
|
||||
data:
|
||||
duration:
|
||||
days: 14
|
||||
response_variable: calendar_response
|
||||
- action: python_script.epaper_calendar_data
|
||||
data:
|
||||
calendar: "{{ calendar_response }}"
|
||||
now: "{{ now().date() }}"
|
||||
response_variable: calendar_converted
|
||||
sensor:
|
||||
- name: Epaper Kalenderdaten
|
||||
unique_id: epaper_calendar_data
|
||||
state: "{{ calendar_converted.entries | count }}"
|
||||
attributes:
|
||||
entries: "{{ calendar_converted.entries }}"
|
||||
|
||||
# Shelly 3EM cumulative sensors (incl. PV)
|
||||
- sensor:
|
||||
# Template sensor for values of power import (active_power > 0)
|
||||
|
||||
Reference in New Issue
Block a user