if 'modbus' in conf:
modbus_conf = conf['modbus']
#port = SerialPort(modbus_conf['serial device'])
- port = serialio.serial_for_url(f"serial://{modbus_conf['serial_device']}")
+ port = serialio.serial_for_url(f"serial://{modbus_conf['serial device']}")
await port.open()
client = SerialClient(port, modbus_conf['slave id'])
fu = SJP1Fu(client)
event = await queue.get()
message = json.dumps(event)
await websocket.send(message)
- if event['event'] == 'pinstate': and event['changed']:
+ if event['event'] == 'pinstate' and event['changed']:
okay = ( pins['Zentralschmierung'].value and
pins['Ölpumpe'].value and
pins['Schwungrad'].value and