Define sensors and relays from yaml file

With yaml we can add class constructors matching our brew classes. See top of server for custom yaml loader constructors.
This commit is contained in:
2021-10-03 18:59:50 +02:00
parent 24055429b7
commit 4c30bbd464

23
brew.yaml Normal file
View File

@@ -0,0 +1,23 @@
---
relays:
- !Relay
controls: cooling
pin: 14
- !Relay
controls: heating
pin: 23
- !Relay
controls: light
pin: 24
sensors:
- !bcm600
location: inside
interval: 2
- !dht11
pin: 13
location: outside
interval: 30