AudioSetup now takes the name of two already created devices and stores a reference to the devices instead of creating and owning the devices directly

This commit is contained in:
2023-08-14 01:51:45 +02:00
parent 76b75b0cfb
commit e38c5eed31
12 changed files with 151 additions and 77 deletions

View File

@@ -2,12 +2,12 @@
base_url = "https://login.huizinga.dev/api/oidc"
[mqtt]
host="olympus.vpn.huizinga.dev"
port=8883
client_name="automation-ares"
username="mqtt"
password="${MQTT_PASSWORD}"
tls=true
host = "olympus.vpn.huizinga.dev"
port = 8883
client_name = "automation-ares"
username = "mqtt"
password = "${MQTT_PASSWORD}"
tls = true
[ntfy]
topic = "${NTFY_TOPIC}"

View File

@@ -65,15 +65,19 @@ topic = "automation/appliance/living_room/zeus"
mac_address = "30:9c:23:60:9c:13"
broadcast_ip = "10.0.0.255"
[devices.living_mixer]
type = "KasaOutlet"
ip = "10.0.0.49"
[devices.living_speakers]
type = "KasaOutlet"
ip = "10.0.0.182"
[devices.living_audio]
type = "AudioSetup"
topic = "zigbee2mqtt/living/remote"
[devices.living_audio.mixer]
type = "KasaOutlet"
ip = "10.0.0.49"
[devices.living_audio.speakers]
type = "KasaOutlet"
ip = "10.0.0.182"
mixer = "living_mixer"
speakers = "living_speakers"
[devices.hallway_frontdoor]
type = "ContactSensor"

View File

@@ -65,15 +65,19 @@ room = "Living Room"
topic = "automation/appliance/living_room/zeus"
mac_address = "30:9c:23:60:9c:13"
[devices.living_mixer]
type = "KasaOutlet"
ip = "10.0.0.49"
[devices.living_speakers]
type = "KasaOutlet"
ip = "10.0.0.182"
[devices.living_audio]
type = "AudioSetup"
topic = "zigbee2mqtt/living/remote"
[devices.living_audio.mixer]
type = "KasaOutlet"
ip = "10.0.0.49"
[devices.living_audio.speakers]
type = "KasaOutlet"
ip = "10.0.0.182"
mixer = "light_sensor"
speakers = "living_speakers"
[devices.hallway_frontdoor]
type = "ContactSensor"