Just posting my version of this, slightly modified and also hopefully forum formatted for ease of copying and pasting!
Quick one: if I’m using
mqtt:
broker: core-mosquitto
discovery: true
discovery_prefix: homeassistant
as my MQTT settings, does that mean I’m running the HBMQTT (embedded) or RabbitMQ broker? I’m confused, as there seem to be a lot of potential built in brokers. I THINK I’m using the Eclipse Mosquitto broker Hass addon. Just trying to rule out the source of the memory leak. I AM running the Unifi addon…
- alias: 'SWAP usage'
trigger:
- platform: time
at: '03:00:00'
condition:
- condition: numeric_state
entity_id: sensor.swap_use_percent
above: 95
action:
- service: notify.telegram
data:
message: swap usage is over 95%, rebooting
- service: hassio.host_reboot