Compare commits

...

4 Commits

5 changed files with 44 additions and 28 deletions

View File

@@ -1,5 +1,8 @@
when:
event: [tag]
ref:
exclude:
- refs/tags/*-configchange
steps:
create_namespace:

View File

@@ -15,6 +15,7 @@ from apps.abstraction.vendors import (
simulator,
zigbee2mqtt,
max,
test,
shelly,
tasmota,
hottis_pv_modbus,
@@ -40,6 +41,7 @@ for vendor_name, vendor_module in [
("simulator", simulator),
("zigbee2mqtt", zigbee2mqtt),
("max", max),
("test", test),
("shelly", shelly),
("tasmota", tasmota),
("hottis_pv_modbus", hottis_pv_modbus),

View File

@@ -466,26 +466,6 @@ devices:
model: "MAX! Thermostat"
peer_id: "41"
channel: "1"
- device_id: thermostat_bad_unten
homekit_aid: 31
name: Heizung
type: thermostat
cap_version: "thermostat@1.0.0"
technology: max
features:
mode: true
target: true
current: false
topics:
set: "homegear/instance1/set/48/1/SET_TEMPERATURE"
state: "homegear/instance1/plain/48/1/SET_TEMPERATURE"
metadata:
friendly_name: "Thermostat Bad Unten"
location: "Bad Unten"
vendor: "eQ-3"
model: "MAX! Thermostat"
peer_id: "48"
channel: "1"
- device_id: sterne_wohnzimmer
homekit_aid: 32
name: Sterne
@@ -1157,3 +1137,19 @@ devices:
topics:
state: "zigbee2mqtt/0x842e14fffefe4ba4"
set: "zigbee2mqtt/0x842e14fffefe4ba4/set"
- device_id: thermostat_bad_unten
homekit_aid: 31
name: Heizung
type: thermostat
cap_version: "thermostat@1.0.0"
technology: zigbee2mqtt
features:
heating: true
temperature_range:
- 5
- 30
temperature_step: 0.5
topics:
state: "zigbee2mqtt/0x003c84fffebdcc28"
set: "zigbee2mqtt/0x003c84fffebdcc28/set"

View File

@@ -9,7 +9,7 @@ rules:
thermostats:
- thermostat_bad_unten
params:
eco_target: 16.0
eco_target: 6.0
open_min_secs: 20
close_min_secs: 20
- id: window_setback_esszimmer
@@ -23,7 +23,7 @@ rules:
thermostats:
- thermostat_esszimmer
params:
eco_target: 16.0
eco_target: 6.0
open_min_secs: 20
close_min_secs: 20
previous_target_ttl_secs: 86400
@@ -38,7 +38,7 @@ rules:
thermostats:
- thermostat_wohnzimmer
params:
eco_target: 16.0
eco_target: 6.0
open_min_secs: 20
close_min_secs: 20
previous_target_ttl_secs: 86400
@@ -55,7 +55,7 @@ rules:
thermostats:
- thermostat_kueche
params:
eco_target: 16.0
eco_target: 6.0
open_min_secs: 20
close_min_secs: 20
previous_target_ttl_secs: 86400
@@ -71,7 +71,7 @@ rules:
thermostats:
- thermostat_patty
params:
eco_target: 16.0
eco_target: 6.0
open_min_secs: 20
close_min_secs: 20
previous_target_ttl_secs: 86400
@@ -85,7 +85,7 @@ rules:
thermostats:
- thermostat_schlafzimmer
params:
eco_target: 16.0
eco_target: 6.0
open_min_secs: 20
close_min_secs: 20
previous_target_ttl_secs: 86400
@@ -99,7 +99,7 @@ rules:
thermostats:
- thermostat_wolfgang
params:
eco_target: 16.0
eco_target: 6.0
open_min_secs: 20
close_min_secs: 20
- id: window_setback_bad_oben
@@ -112,6 +112,6 @@ rules:
thermostats:
- thermostat_bad_oben
params:
eco_target: 16.0
eco_target: 6.0
open_min_secs: 20
close_min_secs: 20

15
tools/deploy-configuration.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
NAMESPACE=homea2
kubectl create configmap home-automation-config \
--from-file=devices.yaml=config/devices.yaml \
--from-file=groups.yaml=config/groups.yaml \
--from-file=layout.yaml=config/layout.yaml \
--from-file=rules.yaml=config/rules.yaml \
--from-file=scenes.yaml=config/scenes.yaml \
--namespace=$NAMESPACE \
--dry-run=client -o yaml | kubectl apply -f -
kubectl apply -f deployment/configmap.yaml -n $NAMESPACE