Compare commits
2 Commits
1.1.8-conf
...
2.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
6e50654d00
|
|||
|
e820aa2000
|
@@ -23,7 +23,6 @@ steps:
|
||||
exclude:
|
||||
- refs/tags/*-configchange
|
||||
|
||||
|
||||
namespace:
|
||||
image: quay.io/wollud1969/k8s-admin-helper:0.3.4
|
||||
environment:
|
||||
@@ -34,6 +33,10 @@ steps:
|
||||
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
|
||||
- export KUBECONFIG=/tmp/kubeconfig
|
||||
- kubectl create namespace $NAMESPACE || echo "Namespace $NAMESPACE already exists"
|
||||
when:
|
||||
ref:
|
||||
exclude:
|
||||
- refs/tags/*-configchange
|
||||
|
||||
configuration:
|
||||
image: quay.io/wollud1969/k8s-admin-helper:0.3.4
|
||||
|
||||
@@ -24,7 +24,7 @@ class ToDevices(AbstractMqttPublisher):
|
||||
continue
|
||||
if device.register_type != 'coil':
|
||||
raise Exception(f"Unsupported register type {device.register_type} for input device {device.name}")
|
||||
value = payload == b'On'
|
||||
value = payload == b'on'
|
||||
self.modbusHandler.writeCoil(device.slave_id, device.address, value)
|
||||
except Exception as e:
|
||||
logger.error(f"Caught exception in onMessage: {str(e)}")
|
||||
|
||||
Reference in New Issue
Block a user