-
-
Notifications
You must be signed in to change notification settings - Fork 6
Automation examples
HAEdwin edited this page Oct 16, 2025
·
7 revisions
I collected some automations that might help you.
Restart ECU-B or ECU-C This automation was build for ECU-B and/or ECU-R (2160) owners who use a smart-plug. When the cache-count is at a certain stage the smart-plug will turn off and turn on the ECU. You can simply copy this YAML script and paste it.
alias: Reboot ECU-B when needed
description: ""
triggers:
- trigger: numeric_state
entity_id:
- sensor.ecu_216300123456_using_cache_counter
above: 2
conditions: []
actions:
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.smartplug_ecu
- action: persistent_notification.create
metadata: {}
data:
message: ECU-B wordt gereboot
- delay:
hours: 0
minutes: 0
seconds: 15
milliseconds: 0
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.smartplug_ecu
mode: single