diff --git a/bedroom_plug_tkm1.yaml b/bedroom_plug_tkm1.yaml new file mode 100644 index 0000000..69dd3a3 --- /dev/null +++ b/bedroom_plug_tkm1.yaml @@ -0,0 +1,63 @@ +esphome: + name: bedroom_plug_tkm1 + platform: ESP8266 + board: esp01_1m + +wifi: + ssid: "Meneely" + password: "punxsutawney1" + + # Enable fallback hotspot (captive portal) in case wifi connection fails + # ap: + # ssid: "BigBlue1 Fallback Hotspot" + # password: "QNWj7LmaNoD6" + manual_ip: + # Set this to the IP of the ESP + static_ip: 192.168.87.41 + # Set this to the IP address of the router. Often ends with .1 + gateway: 192.168.86.1 + # The subnet of the network. 255.255.255.0 works for most home networks. + subnet: 255.255.254.0 + fast_connect: True + +# captive_portal: + +# Enable logging +logger: + +# Enable Home Assistant API +api: + +ota: +binary_sensor: + - platform: gpio + pin: + number: GPIO4 + mode: INPUT_PULLUP + inverted: True + name: "BR_Plug_TKM1 button" + on_press: + - switch.toggle: relay + +switch: + - platform: gpio + name: "BR_Plug_TKM1 relay" + pin: GPIO14 + id: relay + +status_led: + pin: + number: GPIO12 + inverted: yes + +sensor: + - platform: wifi_signal + name: "BR_Plug_TKM1 WiFi signal" + update_interval: 60s + + - platform: uptime + name: "BR_Plug_TKM1 uptime" + +text_sensor: + - platform: version + name: "BR_Plug_TKM1 ESPHome version" \ No newline at end of file