5 ms·
FYI this could have been done really easily in esphome: switch: - platform: gpio pin: 25 name: "Modem relay" restore_state: ALWAYS_ON
by kelvie 4y ago
FYI this could have been done really easily in esphome:
switch:
- platform: gpio
pin: 25
name: "Modem relay"
restore_state: ALWAYS_ON
id: modem_relay
interval:
- interval: 1min
if:
condition:
not:
wifi.connected
then:
- switch.turn_off: modem_relay
- delay: 1s
- switch.turn_on: modem_relay
- thedanbob 4y agoMostly I write my own firmware to improve my C++ skills :)