Now properly sends light state back to HA

This commit is contained in:
2024-04-29 13:49:12 +02:00
parent ef7144ebc1
commit 26341e075a
5 changed files with 214 additions and 100 deletions

View File

@@ -9,19 +9,11 @@ esphome:
libraries:
- plerup/EspSoftwareSerial
# custom_component:
# - lambda: |-
# auto door = new HoermanDoor();
# App.register_component(door);
# return {door};
# components:
# - id: door_${garageSide}
# - lambda: |-
# auto light = new NbsLightOutput();
# App.register_component(light);
# return {light};
# components:
# - id: door_${garageSide}_lamp
ota:
password: !secret gd_passwd
api:
encryption:
key: !secret gd_key
wifi:
ssid: !secret wifi_ssid
@@ -39,18 +31,16 @@ external_components:
cover:
- platform: hoermann_door
name: door_${garageSide}
light:
- platform: binary
name: door_${garageSide}_lamp
id: lamp_id_${garageSide}
output: light_out
output:
- id: light_out
platform: hoermann_door
state_callback: lamp_id_${garageSide}
ota:
password: !secret gd_passwd
api:
encryption:
key: !secret gd_key