mirror of
https://gitlab.com/sfz.aalen/infra/fabaccess.git
synced 2025-03-12 15:01:47 +01:00
Update fab_access/mqtt_client.py
This commit is contained in:
parent
f681a96f24
commit
fd056321d3
@ -58,7 +58,7 @@ class MqttHandler:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def switch_plug(PlugID, state):
|
def switch_plug(PlugID, state):
|
||||||
MqttHandler.publish(f'/FabLogging/{PlugID}/POWER', 1 if state else 0)
|
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
|
@staticmethod
|
||||||
def print_to_display(MachineID, status, text):
|
def print_to_display(MachineID, status, text):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user