Added ability to load topics from a configuration file in the root directory. Dew point calculation seems to be off though.

This commit is contained in:
2021-10-17 18:24:36 -04:00
parent 3f78a53014
commit d8734913e0
8 changed files with 255 additions and 84 deletions

34
Bootstrap/topics-example Normal file
View File

@@ -0,0 +1,34 @@
{
"sensors": {
"humidity": "sensors/humidity",
"temperature":"sensors/temperature",
"dewPoint":"sensors/dew_point"
},
"setPoints": {
"dehumidify":{
"lowDewPoint":"set_points/dehumidify/low_dew_point",
"highDewPoint":"set_points/dehumidify/high_dew_point",
"lowRelativeHumidity":"set_points/dehumidify/low_relative_humidity",
"highRelativeHumidity":"set_points/dehumidify/high_relative_humidity"
},
"humidify":{
"relativeHumidity":"set_points/humidify/relative_humidity",
"dewPoint":"set_points/humidify/dew_point"
}
},
"states":{
"mode":"states/mode",
"relays":{
"dehumdification1":"states/relays/dehumidification_1",
"humdification":"states/relays/humidification",
"dehumidification2":"states/relays/dehumidification_2"
}
},
"commands":{
"relays":{
"dehumidification2":"relays/dehumidification_2",
"humidification":"relays/humidification",
"dehumidification1":"relays/dehumidification_1"
}
}
}