-
Notifications
You must be signed in to change notification settings - Fork 7
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
Smart Home Panel (MQTT) #5
Comments
I am running into some issues with regard to the ../SET topic If I use the following in mosquito.conf, I see payloads as I change settings in the app: If, however, I use the following instead, I get strange/unpredictable results: I'm not sure if this two-way "bridged" setup is problematic or if there is something I'm not understanding about this configuration... but, at this point, it is not working for me in terms of both intercepting and publishing setting changes with MQTT Explorer pointed at the mosquito broker. Assuming I can get this kink worked out I should be able to create switches and configurable entities in HA to do things like toggle EPS mode and change charge/discharge limits on the SHP... |
I've also noticed some oddities when attempting to configure a bridge connection for the SHP but I've not had any time to investigate further. My biggest issues was that energy usage practically doubles (in terms of what's recorded, not actual usage) when I use the I did a very small bit of investigation at the time and the only conclusion I had was that I was experiencing looping, where the same message is received and sent again, causing a duplication of the message. It must not be turning in to a loop storm that goes on forever but it obviously renders the values recorded by the SHP useless. I do think that the |
My observation thus far is that ../set only sees messages when something changes in the app. When the app first opens it sends a ‘latestquotas’ message to ../get and the SHP places a large message with status of everything within ‘quotamap’ in ../get-reply but that exchange only appears to happen when the app starts (SHP sub-app opens). DP and D2 appear to operate similarly in terms of that ‘latestquotas’ ../get exchange at app open. Have you seen this kind of ‘looping’ issue when doing ‘both’ on the ../set for DP? I have not tried that yet as I still have the hassio integration working for my DPs. |
I've not observed any issues with using I too still have both of my Delta Pros working with the HA integration and am not forced to use MQTT for them just yet so, like you, I am interested in having the SHP in HA. Unfortunately I'm not able to devote much time to tinkering at the moment. |
I noticed that my sensor to provide "SHP ALL Circuit Power" was also including the input/output of the Delta Pros when engaged as they are part of the same list (elements 10 & 11)... In Power Shell it's easy to select part of an array and send that along the pipeline but the syntax for that was not working in YAML... I'm still on a bit of YAML/Jinja 'learning curve' so I had to dig around a bit but this is what I came up with:
As I said, syntax is a bit different than PowerShell where I might have done $X[0..9] and $X[-2..-1] |
I've gone back through and refined my configuration further eliminating the need to re-publish payloads from /app/device/property/SN (remapped to ecoflow/SHP/data in my case) to other topics... I was able to eliminate all SHP related automations except one:
Since the payload with the value of charge/discharge limits is sent to ../data only when/if changed my sensor would start in an unknown state and remain there until I changed the value in the app... with the above automation re-publishing to ../limits with a retained flag, the last known value is available on the broker when sensors are re-loaded in HA... The rest of the sensors were not an issue as the SHP publishes a 'heartbeat' every 1 second with most of the data I care about and publishes a payload with circuit power, etc. every 5 seconds... Thus the MQTT sensors looks like this:
and are used by number templates like this:
|
@Ne0-Hack3r Would you consider publishing your package yaml for the Smart Home Panel? Since it's already abstracted it's a great way to get the device for smart home panel created with all the sensors. |
I am working on completing the package for Delta Pro (MQTT) as well... once they are both done and working together I'll look at publishing the code... Probably need to setup my own project for that purpose... |
As of a week or so ago, my Smart Home Panel started flooding MQTT with messages so often (multiple time a second) that the MQTT requests I generate with Home Assistant are usually ignored. My home-assistant.log file is expanding like crazy. The only way to stop the unwanted messages is to completely shut down the SHP. Deleting the shp_integration yaml does nothing so it's not an error in the integration. Is anyone else suddenly seeing this or do I maybe have malware in my SHP? |
I'm not seeing the same - there's a possibility that you've got yourself in an echo chamber of sorts and messages are being echo'd between yours and their MQTT servers, like a message flood. I did see this when I was first setting up and mistakenly used Here's my current
A word of warning, my topic subscriptions are different to what is described in the original post configuration at the top of this thread, so my topic subscriptions very likely won't look the same as yours, but the important bits are:
|
Thanks for the reply. I restarted my MQTT broker, then tried restarting HA, then did a complete reboot. My log file still floods but I think these might be different errors than I had before. I'm going to do a little more investigating and then will post again. |
I'm receiving error messages similar to this one at the rate of 10 times per second.
|
Here is what I've come up with thus far in terms of linking SHP to HA via MQTT...
First, follow the instructions from @lwsrbrts in ISSUE #1
Second, configure your mosquito.conf like this:
Note: The format of 'topic' here is intended to obfuscate the serial number such that it only has to be entered once into the mosquito.conf and everything else can then be addresses as /ecoflow/SHP/... on the local broker. The same could be done for Delta Pro using ../DP/.. or ../DP1/.. ../DP2/.. for example.
Third, build automations for each params.id you want to monitor to place the messages for those into separate topics...
Fourth, create MQTT sensors for each topic above to pull key/value pairs into entity attributes in HA:
Finally, create whatever custom sensors you want using the attributes from above...
Here are some binary sensors that might be useful:
Once you have the custom sensors you want you can use them to create dashboards with lists, gauges, etc.
The text was updated successfully, but these errors were encountered: