Skip to content

Commit

Permalink
Created script to restart ESP devices.
Browse files Browse the repository at this point in the history
This is a workaround for the bad networking at home + mDNS issues.
  • Loading branch information
dannytsang committed Sep 24, 2024
1 parent b020410 commit 603d344
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/integrations/esp_home.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,26 @@ script:
data: {}
target:
entity_id: "{{ entity_id }}"
restart_esp:
alias: Restart ESP
sequence:
- service: switch.turn_off
metadata: {}
data: {}
target:
entity_id:
- switch.ashlee_s_bedroom_esp_plug
- switch.bedroom_esp_plug
- switch.leo_s_bedroom_esp_plug
- delay:
seconds: 5
- service: switch.turn_on
metadata: {}
data: {}
target:
entity_id:
- switch.ashlee_s_bedroom_esp_plug
- switch.bedroom_esp_plug
- switch.leo_s_bedroom_esp_plug
description: ""
icon: mdi:chip

0 comments on commit 603d344

Please sign in to comment.