Remove heated blanket
This commit is contained in:
parent
e6a314b0dc
commit
d669c05588
1 changed files with 0 additions and 65 deletions
|
@ -1,65 +0,0 @@
|
||||||
#SONOFF BASICR2
|
|
||||||
#https://www.banggood.com/SONOFF-BASICR2-10A-2200W-WIFI-Wireless-Smart-Switch-Remote-Control-Socket-APP-Timer-AC90-250V-50-or-60Hz-Works-with-Amazon-Alexa-Google-Home-Assistant-Nest-IFTTT-p-1019971.html?rmmds=myorder&cur_warehouse=CN
|
|
||||||
|
|
||||||
esphome:
|
|
||||||
name: heated_blanket
|
|
||||||
platform: ESP8266
|
|
||||||
board: esp8285
|
|
||||||
|
|
||||||
wifi:
|
|
||||||
ssid: !secret wifi-ssid
|
|
||||||
password: !secret wifi-password
|
|
||||||
|
|
||||||
logger:
|
|
||||||
api:
|
|
||||||
ota:
|
|
||||||
|
|
||||||
# Device Specific Config
|
|
||||||
|
|
||||||
light:
|
|
||||||
- platform: binary
|
|
||||||
id: lamp
|
|
||||||
name: "Heated Blanket"
|
|
||||||
output: gpio_12
|
|
||||||
output:
|
|
||||||
- platform: gpio
|
|
||||||
pin: GPIO12
|
|
||||||
id: gpio_12
|
|
||||||
|
|
||||||
binary_sensor:
|
|
||||||
- platform: gpio
|
|
||||||
id: push_button
|
|
||||||
pin:
|
|
||||||
number: GPIO0
|
|
||||||
mode: INPUT_PULLUP
|
|
||||||
inverted: True
|
|
||||||
internal: true
|
|
||||||
on_press:
|
|
||||||
# Prevents unintended LED lit states.
|
|
||||||
if:
|
|
||||||
condition:
|
|
||||||
- light.is_off: lamp
|
|
||||||
then:
|
|
||||||
#- light.turn_on: blue_led
|
|
||||||
- light.turn_on: lamp
|
|
||||||
else:
|
|
||||||
- light.turn_off: lamp
|
|
||||||
|
|
||||||
#switch:
|
|
||||||
# # The relay switches on the red side of the LED when active.
|
|
||||||
# - platform: gpio
|
|
||||||
# name: "Sonoff Basic Relay"
|
|
||||||
# pin: GPIO12
|
|
||||||
# id: relay
|
|
||||||
# on_turn_off:
|
|
||||||
# if:
|
|
||||||
# condition:
|
|
||||||
# - switch.is_on: blue_led
|
|
||||||
# then:
|
|
||||||
# - switch.turn_off: blue_led
|
|
||||||
# # With this we can control the blue side of the LED.
|
|
||||||
# - platform: gpio
|
|
||||||
# id: blue_led
|
|
||||||
# pin:
|
|
||||||
# number: GPIO13
|
|
||||||
# inverted: True
|
|
Loading…
Add table
Add a link
Reference in a new issue