-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-cozytouch.py
100 lines (96 loc) · 3.31 KB
/
config-cozytouch.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# to be used together with https://github.com/RichieB2B/overkiz2mqtt
# mqtt broker
mqtt_broker = "127.0.0.1"
mqtt_username = "me"
mqtt_password = "secret"
mqtt_topic = "cozytouch/#"
# http server
http_port = 8078
# dict with topic as key and dict value with name, labels and help.
# If name is omitted, the last part of the topic will be used.
# If help is omitted, the full topic name will be used.
# If lables are omitted, no labels are used.
# 'topic1': { 'name': 'my_topic1', 'labels': {'label1': 'foo', 'label2': 'bar'}, help: 'power in Watt' },
# 'topic2': { 'help': 'voltage' },
# 'topic3': { 'name': 'my_topics3', 'labels': {'label1': 'baz'} },
# 'topic4': {},
mqtt_topics = {
"cozytouch/io:AtlanticDomesticHotWaterProductionV2_CV4E_IOComponent/states": [
{
"field": "core:RSSILevelState",
"name": "wpb_rssilevel_db",
"help": "RSSI level in dB",
},
{
"field": "core:TemperatureState",
"name": "wpb_temperature_celsius",
"labels": {"type": "wanted"},
"help": "Temperature in degrees Celsius",
},
{
"field": "core:TargetTemperatureState",
"name": "wpb_temperature_celsius",
"labels": {"type": "target"},
"help": "Temperature in degrees Celsius",
},
{
"field": "core:V40WaterVolumeEstimationState",
"name": "wpb_watervolumeestimation_l",
"help": "Volume in liter",
},
{
"field": "io:MiddleWaterTemperatureState",
"name": "wpb_temperature_celsius",
"labels": {"type": "middle"},
"help": "Temperature in degrees Celsius",
},
{
"field": "io:HeatPumpOperatingTimeState",
"name": "wpb_operatingtime_hour",
"labels": {"object": "heatpump"},
"help": "Operating time in hours",
},
{
"field": "io:ElectricBoosterOperatingTimeState",
"name": "wpb_operatingtime_hour",
"labels": {"object": "booster"},
"help": "Operating time in hours",
},
{
"field": "io:PowerHeatElectricalState",
"name": "wpb_power_watt",
"labels": {"type": "electrical"},
"help": "Power in Watt",
},
{
"field": "io:PowerHeatPumpState",
"name": "wpb_power_watt",
"labels": {"type": "heatpump"},
"help": "Power in Watt",
},
{
"field": "core:BoostModeDurationState",
"name": "wpb_duration_day",
"labels": {"type": "boostmode"},
"help": "Duration in days",
},
{
"field": "io:AwayModeDurationState",
"name": "wpb_duration_day",
"labels": {"type": "awaymode"},
"help": "Duration in days",
},
],
"cozytouch/internal:PodMiniComponent/states": [
{"field": "internal:LightingLedPodModeState", "name": "wpb_ledpodmode"},
],
"cozytouch/io:DHWCumulatedElectricalEnergyConsumptionIOSystemDeviceSensor/states": [
{
"field": "core:ElectricEnergyConsumptionState",
"name": "wpb_energyconsumption_wh",
"help": "Electric energy consumption in Wh",
},
],
}
sleep = 30
debug = False