What can be wrong with this:
I have a yaml-file sensors.yaml
sensor: *Missing property "platform"*
- platform: template
today_day:
friendly_name: Vandaag
value_template: >-
{% set months = ["Januari", "Februari", "Maart", "April", "Mei", "Juni", "Juli", "Augustus", "September", "Oktober", "November", "December"] %}
{% set days = ["Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag", "Zondag"] %}
{{ days[now().weekday()] }} {{ now().day | string }} {{ months[now().month-1] }}
- platform: template
today_time:
friendly_name: Tijd
value_template: "{{ now().timestamp() | timestamp_custom('%H:%M') }}"
icon_template: mdi:calendar-clock
- platform: template
alarm_status:
friendly_name: "Alarm Status"
value_template: >-
{% if is_state('alarm_control_panel.alarmo', 'armed_away') %}
Gewapend (weg)
{% elif is_state('alarm_control_panel.alarmo', 'armed_home') %}
Gewapend (thuis)
{% elif is_state('alarm_control_panel.alarmo', 'disarmed') %}
Uitgeschakeld
{% else %}
Onbekend
{% endif %}