kbialek / deye-inverter-mqtt

Reads Deye solar inverter metrics and posts them over mqtt
Apache License 2.0
215 stars 50 forks source link

How to use with HomeAssistant? #95

Closed vordenken closed 1 year ago

vordenken commented 1 year ago

Hello everybody,

I wanted to use this project with homeassistant because the other project for eye and home assistant (https://github.com/StephanJoubert/home_assistant_solarman) has a lot of problems.

I successfully deployed the docker container and connected to the logger as well as the mqtt broker. But how do I get the stuff to be displayed in homeassistant? I already read the homeassistant mqtt documentation but I have no clue where to set anything. The last time I added something via mqtt to homeassistant it just got discovered.

Thanks for your help.

Hardware (please complete the following information):

Software (please complete the following information):

2023-06-06 08:40:57,446 - DeyeDaemon - INFO - Please help me build the list of compatible inverters. https://github.com/kbialek/deye-inverter-mqtt/issues/41
2023-06-06 08:40:57,455 - DeyeMqttClient - INFO - Successfully connected to MQTT Broker located at 192.168.XXX.XXX:1883
2023-06-06 08:40:57,455 - DeyeDaemon - INFO - Feature "Report metrics over MQTT": enabled
2023-06-06 08:40:57,455 - DeyeDaemon - INFO - Feature "Set inverter time once online": disabled
2023-06-06 08:40:57,456 - DeyeDaemon - INFO - Reading start
2023-06-06 08:40:57,456 - DeyeDaemon - INFO - Reading registers [metrics group: micro, range: 003c-0074]
2023-06-06 08:40:57,801 - DeyeMqttClient - INFO - Logger is online
2023-06-06 08:40:57,820 - DeyeDaemon - INFO - Reading completed
2023-06-06 08:41:57,820 - DeyeDaemon - INFO - Reading start
2023-06-06 08:41:57,820 - DeyeDaemon - INFO - Reading registers [metrics group: micro, range: 003c-0074]
2023-06-06 08:41:58,299 - DeyeMqttClient - INFO - Logger is online
2023-06-06 08:41:58,310 - DeyeDaemon - INFO - Reading completed
2023-06-06 08:42:57,820 - DeyeDaemon - INFO - Reading start
2023-06-06 08:42:57,820 - DeyeDaemon - INFO - Reading registers [metrics group: micro, range: 003c-0074]
2023-06-06 08:42:58,410 - DeyeMqttClient - INFO - Logger is online
kbialek commented 1 year ago

The logs look good.

When it comes to MQTT integration in HA, I know that HA is listening on some discovery topics. E.g. esphome project broadcasts autodiscovery information over MQTT, so HA can find the device https://esphome.io/components/mqtt.html

This service does not publish any autodiscovery information, hence the metrics do not automagically appear in HA.

This means that you will have to map MQTT topics to HA components manually.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.