Sure,
# sensor 1:
- platform: yr
# sensor 2:
- platform: darksky
api_key: !secret api_key
latitude: !secret latitude
longitude: !secret longitude
units: auto
name: Open Sky
monitored_conditions:
- summary
- icon
- wind_bearing
- wind_speed
- apparent_temperature
- temperature
- temperature_max
- temperature_min
- humidity
- precip_probability
- precip_type
- cloud_cover
- pressure
# sensor 3
- platform: time_date
display_options:
- 'time_date'
- 'time'
- 'date'
# sensor 4
- platform: systemmonitor
resources:
- type: memory_use_percent
- type: swap_use_percent
- type: processor_use
- type: last_boot
- type: disk_free
arg: /home
# RPi Power Status
- platform: rpi_power
text_state: true
# CPU temperature
- platform: command_line
name: CPU Temperature
command: 'cat /sys/class/thermal/thermal_zone0/temp'
unit_of_measurement: "°C"
value_template: '{{ (value | multiply(0.001)) | round(1) }}'
# Authenticated
- platform: authenticated
- platform: template
sensors:
template_pir_motion:
friendly_name: 'Last Motion Location'
value_template: >
{%- set pirs = [states.binary_sensor.bedroom_pir, states.binary_sensor.kidsroom_pir, states.binary_sensor.kitchen_pir] %}
{% for pir in pirs %}
{% if as_timestamp(pir.last_changed) == as_timestamp(pirs | map(attribute='last_changed') | max) %}
{{ pir.name }}
{% endif %}
{% endfor %}
- platform: template
sensors:
since_last_motion:
friendly_name: 'Minutes since last motion'
entity_id: sun.sun
value_template: >
{%- set sensors = [states.binary_sensor.bedroom_pir, states.binary_sensor.kidsroom_pir, states.binary_sensor.kitchen_pir] %}
{%- set filtered_sensors = sensors | selectattr('last_changed','==', sensors | map(attribute='last_changed') | max) | list %}
{{ (( as_timestamp(now()) - as_timestamp(filtered_sensors[0].last_changed)) / 60 ) | int }}
# sensor #
# - platform: speedtest
# monitored_conditions:
# - ping
# - download
# - upload
I’ve disabled speedtest as it’s using max RAM and bumping up my SWAP space.