Files
hassos_config/entities/templates/eink_display.yaml
willem bdbeec27aa Update devices.yaml and state.json with new device configurations and states
- Refactored friendly names in devices.yaml for consistency and clarity.
- Added new devices and updated existing ones in devices.yaml.
- Populated state.json with detailed state information for various devices, including brightness, power, and link quality.
- Included update information for devices where applicable.
2026-04-03 00:39:43 +02:00

35 lines
1.4 KiB
YAML
Executable File

- sensor:
- name: e-ink Display Data
unique_id: e_ink_display_data
icon: mdi:display-2
state: "OK"
attributes:
greeting: >
{%- if now() > today_at('18:00') %}Good evening{%- elif now() > today_at('12:00') %}Good afternoon{%- elif now() > today_at('5:00') %}Good morning{%- else %}Good night{%- endif %}
day_full: >
{% set days = ['Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag', 'Zondag'] %}
{{ days[now().weekday()] }}
datum: >
{% set months = ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'] %}
{{ now().day }} {{ months[now().month-1] }} {{ now().year }}
weather_condition_now: >
{% set cond_now = states('weather.forecast_home') %}
{% if states('sun.sun') == 'below_horizon' %}
{% if cond_now == 'sunny' %}night{% elif cond_now == 'partlycloudy' %}night-partly-cloudy{% else %}{{ cond_now }}{% endif %}
{% else %}
{{ cond_now }}
{% endif %}
moon_phase_icon: >
{{ state_attr('sensor.moon_phase', 'icon') | default('🌙') }}
media_playing_status: >
{{ states('media_player.keuken') }}
media_playing_title: >
{{ state_attr('media_player.keuken', 'media_title') | title }}
media_playing_artist: >
{{ state_attr('media_player.keuken', 'media_artist') | title }}