troygnz / homebridge-solax Goto Github PK
View Code? Open in Web Editor NEWHomebridge Solax Monitoring
License: Apache License 2.0
Homebridge Solax Monitoring
License: Apache License 2.0
Is your feature request related to a problem? Please describe.
I like the values given to be reasonably up to date, with a little averaging to deal with wild fluctuations. I’ve currently set the polling time to 10s. The issue is the HB log has the polling strings shown every 10s, which is filling up the log quite considerably!
Describe the solution you'd like
A verbose option to enable or disable the regular polling strings. With verbose logging on, this will show, with verbose off, only the get strings will show.
Describe alternatives you've considered
Putting up with it!
Additional context
N/A
Thanks!
I'm using the local LAN IP of the inverter in the address field (same as your example code) but it seems to want a URL hostname?
[1/6/2022, 2:06:49 PM] [Solax Inverter] That did not go well. Error: TypeError: Only absolute URLs are supported
[1/6/2022, 2:06:49 PM] [Solax Inverter] Failed to read from Solax. Error: TypeError: Only absolute URLs are supported
[1/6/2022, 2:06:54 PM] [Solax Inverter] That did not go well. Error: TypeError: Only absolute URLs are supported
[1/6/2022, 2:06:54 PM] [Solax Inverter] Failed to read from Solax. Error: TypeError: Only absolute URLs are supported
Example Code:
"platforms": [
{
"platform" : "SolaxHomebridgePlugin",
"name" : "Solax Inverter",
"address": "http://192.168.1.40",
"pollingFrequencySeconds": 60,
"movingAverageHistoryLength": 10,
"exportAlertThresholds": [-5000, 0, 1000, 1500],
"showStrings": true,
"hasBattery": false,
"valueStrategy": "SimpleMovingAverage"
}
]
To work around Homekit shortcomings for Solar, expose as motion sensors
Is your feature request related to a problem? Please describe.
I’m guessing this won’t be possible, as I haven’t seen any APIs anywhere that can push new settings to the inverter, but thought I’d ask!
I have my DC battery set to discharge only during certain times. At night when I charge my EVs, the battery is set to not discharge, as I don’t want to charge the EVs from the house battery. I can change the settings using the SolaX app (after entering a four digit PIN).
It would be nice to be able to dynamically change the times the battery discharges through the Home app. Even a “Dicharge / Not discharge” button that merely changes the discharge times on the inverter would be awesome.
Have you seen anything that would allow for this?
Add exponential moving average value filtering strategy
Work around Homekit info display, and show stuff in an info panel
Based on time, adjust the frequency of polling. Once the sun is down, it's pointless polling until the next morning
Describe the bug
Ever since installing Home Assistant (with the SolaX plugin) my HomeBridge log is full of the following error:
[28/02/2022, 22:39:22] [Solax Inverter] That did not go well. Error: FetchError: network timeout at: http://192.168.2.114/api/realTimeData.htm
[28/02/2022, 22:39:22] [Solax Inverter] Failed to read from Solax. Error: FetchError: network timeout at: http://192.168.2.114/api/realTimeData.htm
This repeats around a couple of times per minute. However, despite the error, the data in HK does update and displays seemingly correct values.
Expected behavior
I’m guessing there’s some kind of clash between HomeAssistant and HomeBridge requesting data from the inverter, however it does work sufficiently to keep the data reasonably up to date. Would it be possible to calm down the logs? My HB log is full of these errors, which feels a little much.
Thanks!
Default install on the latest docker image I get this as soon as I restart Homebridge:
[1/6/2022, 11:37:58 AM] TypeError: Cannot read properties of undefined (reading 'join')
at Function.logDetails (/homebridge/node_modules/homebridge-solax/src/config.ts:25:72)
at new SolaxPlatform (/homebridge/node_modules/homebridge-solax/src/solaxPlatform.ts:24:18)
at /usr/local/lib/node_modules/homebridge/src/server.ts:440:40
at Array.forEach ()
at Server.loadPlatforms (/usr/local/lib/node_modules/homebridge/src/server.ts:372:27)
at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:159:29)
[1/6/2022, 11:37:58 AM] Got SIGTERM, shutting down Homebridge...
Describe the bug
Not sure if a bug or an improvement / supporting more devices.
My inverter provides all the values for the battery in the data string. As follows:
"method":"uploadsn","version":"Solax_SI_CH_2nd_20160912_DE02","type":"AL_SE","SN":"serialnumber","Data":[6.1,6.4,212.0,178.9,0.9,245.6,97,37,2.2,8319.2,-48,1293,1144,54.78,41.19,2259,26,67,0.0,2823.5,,,,,,,,,,,,,,,,,,,,,,0.00,0.00,,,,,,,,50.03,,,0.0,0.0,0,0.00,0,0,0,0.00,0,9,0,0,0.00,0,9],"Status":"2"}
The “67” value above is the current battery %.
The “2259” figure is the current watts going into the battery.
At the moment, the plugin shows 0% for my battery (says not supported in the Home app, but I get 0% on others).
To Reproduce
N/A
Expected behavior
The battery accessory to show the battery % from the above string, maybe a further accessory to show the battery input/output.
Screenshots
N/A
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
Thanks for your work!
Hi Would like to start by saying that I'm new to Homebridge and have had some success with using it.
I really like the fact that there is a Solax plugin, as this will be a fantastic feature that i can add to my home setup.
i have installed the plugin, however I'm not seeing any updates and when i referred to the status log i can see an error message with the following :
"only absolute URL's are supported"
Screenshots
[10/01/2022, 8:59:02 am] [Solax Inverter] That did not go well. Error: TypeError: Only absolute URLs are supported
[10/01/2022, 8:59:02 am] [Solax Inverter] Failed to read from Solax. Error: TypeError: Only absolute URLs are supported
The current environment config is running
Node.js Version | v16.13.1
NPM | v8.1.2
I have tested the url http://192.168.xxx.xxx/api/realTimeData.htm to confirm that the content is available. See below: (Note, i just removed the SN data)
{"method":"uploadsn","version":"Solax_SI_CH_2nd_20160912_DE02","type":"AL_SE","SN":"(I have removed)","Data":[0.8,0.8,379.1,193.3,-0.9,233.5,0,43,0.9,20314.2,-4939,303,154,49.86,9.26,462,26,16,0.1,3943.1,,,,,,,,,,,,,,,,,,,,,,0.00,0.00,,,,,,,,50.00,,,0.0,0.0,0,0.00,0,0,0,0.00,0,9,0,0,0.00,0,9],"Status":"2"}
if there is anything else that may help support the review of this issue, please let me know.
Cheers
Vinny
Hi,
it would be great if solax cloud could also be used as a source as well.
A api is available:
https://www.eu.solaxcloud.com/phoebus/resource/files/userGuide/Solax_API_for_End-user_V1.0.pdf
Allow option to use average over a certain period of time.
Hard to test (for me), but add a battery type.
Hello!
I am trying to use your plugin but there is a problem with the connexion between the Solax Monitoring Dongle and the plugin.
I am getting the same error all the time
To Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.