Am just testing openHAB to see if it is right for me.
I have deployed openHAB on my Kubernetes cluster and am failing to connect to my MDT-KNX gateway.
Here is my openHAB deployment first:
---
apiVersion: v1
kind: Service
metadata:
labels:
app: openhab
name: openhab
namespace: openhab
annotations:
metallb.universe.tf/allow-shared-ip: openhab
spec:
type: LoadBalancer
loadBalancerIP: 192.168.1.24
ports:
- name: webinterface
port: 80
targetPort: 8080
- name: knx
port: 3671
targetPort: 3671
- name: ssh
port: 22
targetPort: 8101
selector:
app: openhab
---
apiVersion: v1
kind: Service
metadata:
labels:
app: openhab-udp
name: openhab-udp
namespace: openhab
annotations:
metallb.universe.tf/allow-shared-ip: openhab
spec:
type: LoadBalancer
loadBalancerIP: 192.168.1.24
ports:
- name: knx-udp
port: 3671
protocol: UDP
targetPort: 3671
selector:
app: openhab
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: openhab
name: openhab
namespace: openhab
spec:
replicas: 1
selector:
matchLabels:
app: openhab
template:
metadata:
labels:
app: openhab
spec:
# hostNetwork: true
containers:
- image: openhab/openhab:3.3.0
name: openhab
securityContext:
privileged: true
### Kubernetes Probes | begin ###
livenessProbe:
initialDelaySeconds: 420
periodSeconds: 20
tcpSocket:
port: 8080
### Kubernetes Probes | end ###
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
name: webinterface
protocol: TCP
- containerPort: 3671
name: knx
protocol: TCP
- containerPort: 3671
name: knx-udp
protocol: UDP
- containerPort: 8101
name: ssh
protocol: TCP
resources: {}
env:
- name: "TZ"
value: "Europe/Berlin"
volumeMounts:
- mountPath: /openhab/conf
name: kubernetes-pvc
subPath: openhab/conf
- mountPath: /openhab/userdata
name: kubernetes-pvc
subPath: openhab/userdata
- mountPath: /openhab/addons
name: kubernetes-pvc
subPath: openhab/addons
- name: etc-localtime
mountPath: /etc/localtime
- name: etc-timezone
mountPath: /etc/timezone
restartPolicy: Always
volumes:
- name: kubernetes-pvc
persistentVolumeClaim:
claimName: kubernetes-pvc
- name: etc-localtime
hostPath:
path: /usr/share/zoneinfo/Europe/Berlin
- name: etc-timezone
hostPath:
path: /usr/share/zoneinfo/Europe/Berlin
---
I tried to include the gateway both as a tunnel and as a router. However, I only get the online status when I connect it as a router:
UID: knx:ip:ea8e42ceb7
label: KNX/IP Gateway
thingTypeUID: knx:ip
configuration:
useNAT: false
readRetriesLimit: 3
autoReconnectPeriod: 60
type: ROUTER
localSourceAddr: 0.0.0
readingPause: 50
portNumber: 3671
responseTimeout: 10
Then I also get the status Online at my DALI gateway, but only as long as I don’t specify a physical address.
UID: knx:device:ea8e42ceb7:f2d47f12ec
label: KNX DALI GW
thingTypeUID: knx:device
configuration:
pingInterval: 600
readInterval: 0
fetch: false
bridgeUID: knx:ip:ea8e42ceb7
channels:
- id: "2"
channelTypeUID: knx:switch
label: "2"
description: ""
configuration:
ga: 1/1/122+<1/0/122
Unfortunately, I can’t switch the light with the created switch and I don’t get a feedback either.