-
-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ESP8266] Homeassistant autodiscovery failure #565
Comments
@lumapu could it be related to the maximum JSON Document size deviceDoc(128);
...
deviceDoc[F("mf")] = F("Hoymiles"); |
don't know. Thank you for reporting, I will have a look into that. |
Hi, I noticed that by increasing the size of the json document Thank you for your excellent work. Edit : `
` |
Is there currently a workaround for this issue? |
@LustigePerson as @antibill51 confirmed it can be worked around by doubling / increasing the document size: DynamicJsonDocument doc(384); @lumapu the final fix would somehow require us to allocate the document size dynamically. |
@stefan123t or even big enough 😊 |
I also ran into this issue and my workaround is, that I set up a node red flow, which listens to the autodiscovery topics of the ahoy dtu. If a message does not yet contain a "mf", it resends the mqtt message with a fixed "mf" value of "Hoymiles" (defined in the flow). This works for me currently.
|
Am I the only one having this problem? |
@antibill51 same here - I will check that further. Does not work for me either |
fixed homeassistant autodiscovery #565
With 0.5.77 version, autodiscovery don't work . Example message : {"name":"Test1 CH1 U_DC","stat_t":"inverter2/Test1/ch1/U_DC","unit_of_meas":"V","uniq_id":"xxxxxxxxxxxx_ch1_U_DC","dev":
{"name":"Test1 CH1 U_DC","stat_t":"inverter2/Test1/ch1/U_DC","unit_of_meas":"V","uniq_id":"xxxxxxxxxxxx_ch1_U_DC","dev":
{"name":"Test1 CH1 U_DC","stat_t":"inverter2/Test1/ch1/U_DC","unit_of_meas":"V","uniq_id":"xxxxxxxxxxxx_ch1_U_DC","dev":
{"name":"Test1 CH1 U_DC","stat_t":"inverter2/Test1/ch1/U_DC","unit_of_meas":"V","uniq_id":"xxxxxxxxxxxx_ch1_U_DC","dev":
{"name":"Test1 CH1 U_DC","stat_t":"inverter2/Test1/ch1/U_DC","unit_of_meas":"V","uniq_id":"xxxxxxxxxxxx_ch1_U_DC","dev":
{}}}}}} |
Hi all! Same problem here. |
This is working :
|
same problem here, also still with the latest development version |
Platform
ESP8266
Model name
ESP8266 D1 Mini
nRF24L01+ Module
nRF24L01+ plus
Antenna
circuit board
Power Stabilization
nothing
Connection diagram
Connection diagram I used:
Connection picture
Version
0.5.66
Github Hash
f8fe044
Build & Flash Method
ESP Tools (flash)
Desktop
Mac OS
Setup
Device Host Name
WiFi
Inverter
Inverter 0
General
NTP Server
MQTT
System Config
Pinout (Wemos)
Radio (NRF24L01+)
Serial Console
Debug Serial Log output
No response
Error description
I reciently tried to connect AhoyDTU with homeassistant using MQTT. The connection itself works. When submitting the autoconfig message, the manufacturer payload contains
null
instead ofHoymiles
. Flashing the ESP8266 again didn't change a thing. The autodiscovery worked correctly when downgrading to 0.5.41. The only relevant change I found was in 573bd3, although I don't see why this change caused the described error.Expected MQTT Payload (sample for
homeassistant/sensor/HM-300_11218382/ch0_P_AC/config
):Received MQTT Payload:
Payload Diff:
Also, I noticed that the property
stat_cla
is also missing, whereas it was given in 0.5.66.The text was updated successfully, but these errors were encountered: