Skip to content

Instantly share code, notes, and snippets.

@frog32
Created January 25, 2020 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frog32/ebc2f9a3a0546c446e9ff08483efbaf6 to your computer and use it in GitHub Desktop.
Save frog32/ebc2f9a3a0546c446e9ff08483efbaf6 to your computer and use it in GitHub Desktop.
ESPhome configuration for the prober loop https://frog32.ch/blackbox-probing-home-assistant.html
esphome:
name: loop
platform: ESP8266
board: d1_mini
wifi:
ssid: 'WLAN SSID'
password: 'wlan password'
domain: .lan
# Enable logging
logger:
api:
password: '12345678'
ota:
password: '12345678'
switch:
- platform: template
name: "ping"
lambda: 'return false;'
turn_on_action:
- output.turn_on: out_pin
- delay: 1000ms
- output.turn_off: out_pin
- platform: template
name: "ping_zha"
lambda: 'return false;'
turn_on_action:
- output.turn_on: out_pin_zha
- delay: 1000ms
- output.turn_off: out_pin_zha
binary_sensor:
- platform: gpio
pin: D6
name: "pong"
output:
- platform: gpio
pin: D5
id: out_pin
- platform: gpio
pin: D7
id: out_pin_zha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment