smart.py aktualisiert
added smartmeter id in MQTT messages
This commit is contained in:
4
smart.py
4
smart.py
@@ -87,6 +87,10 @@ for row in rows:
|
||||
{
|
||||
'topic': f"homeassistant/sensor/{smartmeter_id}/{result_data['obis']}_name",
|
||||
'payload': result_data['name'], 'qos':1, 'retain': False
|
||||
},
|
||||
{
|
||||
'topic': f"homeassistant/sensor/{smartmeter_id}/serial_number",
|
||||
'payload': smartmeter_id, 'qos':1, 'retain': False
|
||||
}
|
||||
]
|
||||
results.append(result_data)
|
||||
|
||||
Reference in New Issue
Block a user