Hi ,
I am trying to get a sensor in a format to use with afvalwijzer, as the current format isn’t working . I used a template, by it self the sensor now shows up correctly. Using Python formating it looks better But the following platform doesn’t work any more. Does a template need to be added to the sensor itself or somewhere else
Thanks in advance
#Time/date
- platform: time_date
display_options:
- time
- date
- date_time
- date_time_utc
- date_time_iso
- time_date
- time_utc
- beat
# Build on the standard sensor to produce one that can be customized
template: - sensor:
- name: “Date”
state: “{{ as_timestamp(states(‘sensor.date’)) | timestamp_custom(’%d %m %Y’) }}”
icon: “mdi:calendar-clock”
- name: “Date”
PI
- platform: systemmonitor
resources:- type: disk_use
arg: / - type: disk_use_percent
arg: / - type: disk_free
arg: / - type: memory_use_percent
- type: memory_use
- type: memory_free
- type: swap_use_percent
- type: swap_free
- type: load_1m
- type: load_5m
- type: load_15m
- type: swap_free
- type: swap_free
- type: processor_use
- type: processor_temperature
- type: last_boot
- type: disk_use