Intégration deye-inverter-mqtt avec HA
On continue avec un plugin qui permet a HA de découvrir les valeur publié dans MQTT.
https://git.sr.ht/~carstengrohmann/deye-...mann.de%2F
https://github.com/CarstenGrohmann/deye-mqtt-ha-plugin
On se connecte sur le Container LXC :
On va dans le dossier de notre application :
Ajouter les lignes suivantes :
nano config.env
On relance l'application.
On peut voir que le plugin est bien lancé :
Là on a une erreur sur des topics :
Dans HA, on retrouve bien notre onduleur qui a été découvert :
Par contre , le 1er constat c'est qu'on a que les capteurs.
On a pas les settings.
On continue avec un plugin qui permet a HA de découvrir les valeur publié dans MQTT.
https://git.sr.ht/~carstengrohmann/deye-...mann.de%2F
https://github.com/CarstenGrohmann/deye-mqtt-ha-plugin
On se connecte sur le Container LXC :
On va dans le dossier de notre application :
Code :
cd deye-inverter-mqtt
cd plugins
wget https://raw.githubusercontent.com/CarstenGrohmann/deye-mqtt-ha-plugin/refs/heads/master/plugins/deye_plugin_ha_discovery.py
cd ..Ajouter les lignes suivantes :
nano config.env
Code :
#------------------------------------------------------------------------------------------------------------
# Home Assistant Integration
# ==========================
# NOTE: Single or double quotation marks to enclose the string are not required and
# are not allowed.
# Enable this plugin
PLUGINS_ENABLED=deye_plugin_ha_discovery
# MQTT prefix for all topics published to Home Assistant
DEYE_HA_PLUGIN_HA_MQTT_PREFIX=homeassistant
# Inverter manufacturer
DEYE_HA_PLUGIN_INVERTER_MANUFACTURER=Deye
# Inverter model
DEYE_HA_PLUGIN_INVERTER_MODEL=SUN-8K-SG01LP1
# Topics not published to HA
# Use : as separator, supports Unix shell-style wildcards *, ?, [seq] and
# [!seq] as implemented with Python fnmatch,
DEYE_HA_PLUGIN_IGNORE_TOPIC_PATTERNS=uptime:ac/relay_status:*/pv[34]/*
# If the sensor value isn't updated for DEYE_HA_PLUGIN_EXPIRE_AFTER seconds, it'll expire / be
# marked as "unavailable" in Home Assistant.
# It must be greater than DEYE_DATA_READ_INTERVAL or DEYE_PUBLISH_ON_CHANGE_MAX_INTERVAL (if used)
# If the value is not defined, sensor values never expire
DEYE_HA_PLUGIN_EXPIRE_AFTER=600
# Use MQTT topic instead of sensor name in unique_id
# CAUTION:
# Activate this option for new installations only.
# It will break existing integration as it changes the unique_id of all sensors.
# New sensors will be created with the same name as the existing sensors. You can
# merge these sensors manually with db_maint.py.
DEYE_HA_PLUGIN_USE_TOPIC_IN_UNIQUE_ID=trueOn relance l'application.
Code :
./local-run.shOn peut voir que le plugin est bien lancé :
Là on a une erreur sur des topics :
Dans HA, on retrouve bien notre onduleur qui a été découvert :
Par contre , le 1er constat c'est qu'on a que les capteurs.
On a pas les settings.



