Files
bt-mqtt-gateway/gateway.py
T
2017-11-22 17:28:01 +01:00

10 lines
246 B
Python

from config import settings
from mqtt import MqttClient
from workers.thermostat import ThermostatWorker
print(settings)
mqtt = MqttClient()
args = settings['workers']['thermostat']['args']
mqtt.publish(ThermostatWorker(**args).status_update())