Closed Boney35y closed 1 year ago
OK I have resolved the issue:
The resolution was identified by
The sensor was inverter_
in sources/invert-mqtt/mqtt-push.sh we have:
MQTT_SERVER=cat /etc/inverter/mqtt.json | jq '.server' -r
MQTT_PORT=cat /etc/inverter/mqtt.json | jq '.port' -r
MQTT_TOPIC=cat /etc/inverter/mqtt.json | jq '.topic' -r
MQTT_DEVICENAME=cat /etc/inverter/mqtt.json | jq '.devicename' -r
MQTT_USERNAME=cat /etc/inverter/mqtt.json | jq '.username' -r
MQTT_PASSWORD=cat /etc/inverter/mqtt.json | jq '.password' -r
and later on the mosquitto_pub function uses:
-t "$MQTT_TOPIC/sensor/"$MQTT_DEVICENAME"_"$MQTT_SERIAL"/$1" \
To resolve this I added:
MQTT_SERIAL=`cat /etc/inverter/mqtt.json | jq '.serial' -r`
Rebuilt the image and started and data started coming back in
I have cloned the repo as per the readme. I have configured inverter.conf and mqtt.json and started the container with docker up -d.
I can see the MQTT Data being sent.![Listen](https://user-images.githubusercontent.com/103052072/202191852-6e9c7645-4cf8-4d24-94ec-91184716494d.png)
But the sensors show unknown:
I have tried older versions of HA but I get the same results. Can anyone advise what I am missing here?