summaryrefslogtreecommitdiff
path: root/src/inverter_mqtt_receiver.py
blob: 8a89211296cdcb505c74cf29bf9c2a57011a9b51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python3
from home.config import config
from home.mqtt import MqttWrapper, MqttNode


if __name__ == '__main__':
    config.load('inverter_mqtt_receiver')

    mqtt = MqttWrapper()
    node = MqttNode(node_id='inverter')
    node.load_module('inverter')
    mqtt.add_node(node)

    mqtt.connect_and_loop()