Now properly sends light state back to HA
This commit is contained in:
26
garage1.yaml
26
garage1.yaml
@@ -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
|
Reference in New Issue
Block a user