mirror of
https://gitlab.com/sfz.aalen/infra/fabaccess.git
synced 2026-08-17 00:02:01 +02:00
Update fab_access/mqtt_client.py
This commit is contained in:
@@ -58,7 +58,7 @@ class MqttHandler:
|
||||
@staticmethod
|
||||
def switch_plug(PlugID, state):
|
||||
MqttHandler.publish(f'/FabLogging/{PlugID}/POWER', 1 if state else 0)
|
||||
MqttHandler.publish(f'/aktoren/{PlugID}/cmnd/POWER', 'On' if state else 'OFF')
|
||||
MqttHandler.publish(f'/cmnd/{PlugID}/POWER', 'On' if state else 'OFF')
|
||||
|
||||
@staticmethod
|
||||
def print_to_display(MachineID, status, text):
|
||||
|
||||
Reference in New Issue
Block a user