Reorganize configs into packages

This commit is contained in:
2023-04-07 22:20:01 +02:00
parent b8666b87c6
commit 774ba71a86
14 changed files with 72 additions and 121 deletions
+4 -19
View File
@@ -8,16 +8,9 @@ esphome:
includes:
- somfy.h
esp8266:
board: nodemcuv2
logger:
mqtt:
broker: homeassistant
username: esphome
password: !secret mqtt_password
id: mqtt_client
packages:
device_base: !include templates/esp8266.yaml
mqtt: !include templates/mqtt.yaml
globals:
- id: somfy_remote_id_base
@@ -36,7 +29,7 @@ cover:
auto cover = new SomfyRTS(
rfPin,
id(somfy_remote_id_base) + i,
id(mqtt_client));
id(mqtt_homeassistant));
blinds.push_back(cover);
App.register_component(cover);
}
@@ -57,11 +50,3 @@ cover:
- name: "Living Room window"
- name: "Guest East window"
- name: "Guest East door"
ota:
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
domain: ""