From 9cab8bf69271735243e593c318c3b288860fd4d6 Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 10 Nov 2021 10:07:19 +0100 Subject: add esphome stuff --- esphome/config/tvlight.yaml | 61 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 esphome/config/tvlight.yaml (limited to 'esphome/config/tvlight.yaml') diff --git a/esphome/config/tvlight.yaml b/esphome/config/tvlight.yaml new file mode 100644 index 0000000..b51f9d3 --- /dev/null +++ b/esphome/config/tvlight.yaml @@ -0,0 +1,61 @@ +esphome: + name: tvlight + platform: ESP8266 + board: d1_mini + +# Enable logging +logger: + +# Enable Home Assistant API +api: + password: !secret api_password + +# OTA +ota: + password: !secret ota_password + +# WiFi Credentials +wifi: + ssid: !secret wifi_ssid + password: !secret wifi_password + + # Enable fallback hotspot (captive portal) in case wifi connection fails + ap: + ssid: "Tvlight Fallback Hotspot" + password: !secret wifi_ap_password + +captive_portal: + +light: + - id: tvlight + platform: monochromatic + name: "TV" + output: dimmer_tvlight + default_transition_length: 1.5s + gamma_correct: 0 + + - id: wled + platform: binary + name: "WLED" + output: relay_wled + +output: + - id: dimmer_tvlight + platform: esp8266_pwm + pin: D5 + frequency: 1000 Hz + inverted: true + # lower 22% are not useable. use max_power because of inverted + max_power: 0.78 + power_supply: relay_tvlight + + - id: relay_wled + platform: gpio + pin: D1 + +power_supply: + - id: relay_tvlight + pin: D2 + #enable_time: 3s + keep_on_time: 20ms + -- cgit v1.2.3