I am trying to get my data from my PVPowered Inverter to Home Assistant.
The source of the date is a PVPowered Inverter
The PVM1010 MODULE in the inverter can send the data as UDP datagrams.
A TP-link micro router connects the module to a network
The network router provides module with an IP address via DHCP
An Arduino Uno with an W5100 ethernet shield and nRF24 Radio with MySensors and custom software acts as a go-between to an MQTT broker on the network.
Once the data is on the MQTT broker, Home Assistant picks up the data
I have successfully gotten the data to the MQTT broker
Alas, Home Assistant does not see the data. How can I get HA to see the data?
HasQT
(Has)
October 30, 2022, 11:31pm
2
You have to set up the sensors in HA for mqtt to read them.
Either manually with mqtt sensors in yaml or with discovery messages.
You can just manually publish the discovery messages.
This is how I do it via my addon from a bashio script for discovery messages.
#!/usr/bin/with-contenv bashio
#
# Publish MQTT sensors for Config discovery.
set -e
CONFIG_PATH=/data/options.json
PLANTNAME="$(bashio::config 'Plantname')"
MQTT_Host="$(bashio::config 'MQTT_Host' 'core-mosquitto')"
MQTT_User="$(bashio::config 'MQTT_User')"
MQTT_Pass="$(bashio::config 'MQTT_Pass')"
MQTT_Topic="$(bashio::config 'MQTT_Topic')"
MQTT_Data="$(bashio::config 'MQTT_Data')"
# arg="$(jq --raw-output '.MQTT_Data' /data/options.json | tr ',' '\n')"
ts="$(bashio::config 'DateTimeFormat' '%H:%M:%S %d/%m/%Y')"
bashio::log.magenta "$PLANTNAME"
bashio::log.red "${MQTT_Host}"
bashio::log.green "${MQTT_User}"
This file has been truncated. show original
I have the MySensors (MQTT) integration. What has happened before, when I started another MySensors device this way, HA just picked it up and I started using it.
This is why I think I’m missing something simple.
Thanks for you input!
OSD
HasQT
(Has)
October 31, 2022, 12:13am
4
I haven’t used the mysensors integration. Do you perhaps need to adjust your topics…
The “something simple” that I was missing was that, after the presentation, I needed to send to HA using the CHILD_ID of the “entity” This works now
1 Like