-
I have an EG4 6000XP and lxp-bridge listening to its traffic on port 8000 and then publishing the events via MQTT. Most of the values show up properly in Home Assistant, but in particular "status" and "fault_code" always show as "Unknown" in home assistant. The lxp-bridge logs show a value for "status" and "fault_code" every minute or so when the datalogger broadcasts it status:
I see in the source code that the status codes are mapped to human-friendly strings, but I don't see anything like that published to Home Assistant. Any tips on what I should do to get the status working? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 5 replies
-
I think this is probably a configuration option that needs turning on - see https://github.com/celsworth/lxp-bridge/wiki/MQTT-Publishes#lxpdataloginputxparsed-payload--string-added-in-v012 Try setting |
Beta Was this translation helpful? Give feedback.
-
Setting publish_individual_input: true fixed it immediately, thanks! |
Beta Was this translation helpful? Give feedback.
-
Moving on to the next field I'm interested in :-), ac_first/1 (lxp_bjxxxxxx_ac_first_timeslot_1 in Home Assistant) is also showing as Unknown. Setting the publish_holdings_on_connect: true didn't seem to help with that variable. Because the 6000XP does not have a concept of day of the week, I would like to set up an automation to make AC first all day on weekends (when my utility charges cheap rates). Then on weekdays, there would be a schedule for AC first versus battery first. |
Beta Was this translation helpful? Give feedback.
-
Hm that one is a bit trickier, that should already work by default. For debugging you can check the following. There should be a retained topic on your MQTT broker for
So you could try watching for that topic being broadcast. I'm just trying to track down where it actually gets sent, wondering if this got missed out. If you specifically try to read that register, does that send it (and then populate HA?) See https://github.com/celsworth/lxp-bridge/wiki/MQTT#lxpcmddatalogreadac_chargex-payload--empty-added-in-v010 for an example of how to do that (publish to |
Beta Was this translation helpful? Give feedback.
-
Did some more digging: ac_first/3 start time and stop time are hold/156 and hold/157 respectively. However, it seems there is an error when processing the status announcements on or after hold/79 is processed. hold/79 appears in the MQTT subscription, but nothing above that, unless an explicit read is made. I noticed this in the lxp-bridge debug logs - could it be related?
|
Beta Was this translation helpful? Give feedback.
-
And just to document in case anybody else should run into this issue, changing the value from Home Assistant side works as expected. Home Assistant updates the value, it is sent to lxp-bridge, and then the value is rebroadcast as changed. Since I plan on using the EG4 web interface as little as possible and do everything via Home Assistant automations and UI, it will be seamless without any further changes needed. |
Beta Was this translation helpful? Give feedback.
I think this is probably a configuration option that needs turning on - see https://github.com/celsworth/lxp-bridge/wiki/MQTT-Publishes#lxpdataloginputxparsed-payload--string-added-in-v012
Try setting
mqtt.publish_individual_input
true - this should probably become the new default to be honest.