banny310 / hoymiles-dtu-homeassistant-addon Goto Github PK
View Code? Open in Web Editor NEWHome Assistant Add-on: Hoymiles DTU Solar
Home Assistant Add-on: Hoymiles DTU Solar
I have firmware V00.02.22. Disconnects the DTU from the server. And the internet. Need to put in the Wifi AP afterwards again, but do not get any data with or without it into HA.
Any idea what I do wrongly? In the log file, I see that it connects etc etc. So it looks good, but it looks like it does not receive any data. Stays on "unavailable" in the overview. (It's daytime and the panels are producing.). Maybe the new firmware?
Can You please share complete source code? Many thanks!
Hi,
Cant start the Adonis, it sag „Experten int“. Same error when i try to change the IP Adresse in the config.
Andy idea?
Thanks!
"Some of DTUs (with never software) does not send statistics over 10081.
To check that you can login to DTU with telnet telnet 10081 and see communication.
Every minute there should something appear. If it is not, add-on won`t work"
Hello, i can't connect with telnet to dtu adress ip 10081 or other , the ip adress dtu is the dtu ssid ip ?
Thank you
I successfully upgraded firmware (see a different thread) but still keep on getting same error: connection refused. I can telnet 192.168.1.221 10081 without any problems, and data from DTU are dumped to terminal. Any ideas?
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
INFO | 2024-03-19 09:13:38 | [main] hoymiles.Entrypoint (Entrypoint.java:15) - Starting...
INFO | 2024-03-19 09:13:38 | [main] hoymiles.Entrypoint (Entrypoint.java:16) - TimeZone: Europe/Warsaw
INFO | 2024-03-19 09:13:38 | [main] bootstrap.WeldStartup (WeldStartup.java:148) - WELD-000900: 4.0.3 (Final)
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.weld.bean.proxy.util.WeldDefaultProxyServices$1 (file:/app.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of org.jboss.weld.bean.proxy.util.WeldDefaultProxyServices$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
INFO | 2024-03-19 09:13:38 | [main] bootstrap.WeldStartup (WeldStartup.java:236) - WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
INFO | 2024-03-19 09:13:45 | [main] se.WeldContainer (WeldContainer.java:235) - WELD-ENV-002003: Weld SE container f9cf7fb8-c8ad-43b9-a079-74d18899a9df initialized
INFO | 2024-03-19 09:13:46 | [pool-2-thread-1] infrastructure.App (App.java:79) - Application Hoymiles DTU starting...
INFO | 2024-03-19 09:13:46 | [pool-2-thread-1] infrastructure.App (App.java:109) - Connecting to DTU: 192.168.1.221:10081 (watchdog_timeout=300)
INFO | 2024-03-19 09:13:46 | [pool-2-thread-1] dtu.DtuClient (DtuClient.java:78) - Trying connect to 192.168.1.221:10081
WARN | 2024-03-19 09:13:46 | [pool-2-thread-1] infrastructure.App (App.java:118) - DTU connection error: Connection refused: /192.168.1.221:10081
INFO | 2024-03-19 09:13:46 | [pool-2-thread-1] utils.RxUtils (RxUtils.java:58) - No. of errors: 1 class io.netty.channel.AbstractChannel$AnnotatedConnectException, retrying in 1 seconds...
INFO | 2024-03-19 09:13:47 | [RxComputationThreadPool-1] dtu.DtuClient (DtuClient.java:78) - Trying connect to 192.168.1.221:10081
WARN | 2024-03-19 09:13:47 | [RxComputationThreadPool-1] infrastructure.App (App.java:118) - DTU connection error: Connection refused: /192.168.1.221:10081
INFO | 2024-03-19 09:13:47 | [RxComputationThreadPool-1] utils.RxUtils (RxUtils.java:58) - No. of errors: 2 class io.netty.channel.AbstractChannel$AnnotatedConnectException, retrying in 2 seconds...
INFO | 2024-03-19 09:13:49 | [RxComputationThreadPool-2] dtu.DtuClient (DtuClient.java:78) - Trying connect to 192.168.1.221:10081
WARN | 2024-03-19 09:13:49 | [RxComputationThreadPool-2] infrastructure.App (App.java:118) - DTU connection error: Connection refused: /192.168.1.221:10081
INFO | 2024-03-19 09:13:49 | [RxComputationThreadPool-2] utils.RxUtils (RxUtils.java:58) - No. of errors: 3 class io.netty.channel.AbstractChannel$AnnotatedConnectException, retrying in 4 seconds...
Hello,
well it is probably not an issue with the project itself, but my DTU is on firmware 2.07 and, while connecting initially, not data are being red. The question is however how can I upgrade firmware? I have access to admin website of the DTU, but no account on Hoymiles distributor/installer portal. And I cannot find any firmware to download on the web.
I would appreciate help.
Thanks
Andrzej
Set entering the setup for the config I switch to the yaml view and enter the mqtt setting as detailed in the example file (but using of course my server name and login etc). Once I save it move the mqtt section to the end of the file and restarts the service.
Upon checking the log file I see that it has accepted all my settings APART from the mqtt setting which it has set back to your defaults.
As my MQTT is running on a separate server you defaults don't work for me.
Is this a bug - or is it me doing something stupid.
hi,
add-on is not starting, can you help ? thx
here is the log :
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[12:11:53] INFO: /data/options.json exists!
[12:11:54] INFO: MQTT: host=core-mosquitto, port=1883, username=addons, password=xxx
[12:11:55] INFO: DTU: host=192.168.1.88, port=10081
[12:11:56] INFO: banny310 - Home Assistant Hoymiles DTU Solar Data Gateway Add-on
[12:11:56] INFO: Configuration:
{
"dtu": {
"host": "192.168.1.88",
"port": 10081
},
"app": {},
"app_mode_active": {},
"app_mode_passive": {},
"mqtt": {
"host": "core-mosquitto",
"port": "1883",
"username": "addons",
"password": "xxx"
}
}
[12:11:56] INFO: Starting...
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
INFO | 2023-09-11 12:12:00 | [main] hoymiles.Entrypoint (Entrypoint.java:15) - Starting...
INFO | 2023-09-11 12:12:00 | [main] hoymiles.Entrypoint (Entrypoint.java:16) - TimeZone: Europe/Luxembourg
INFO | 2023-09-11 12:12:00 | [main] bootstrap.WeldStartup (WeldStartup.java:148) - WELD-000900: 4.0.3 (Final)
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jboss.weld.bean.proxy.util.WeldDefaultProxyServices$1 (file:/app.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of org.jboss.weld.bean.proxy.util.WeldDefaultProxyServices$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
INFO | 2023-09-11 12:12:01 | [main] bootstrap.WeldStartup (WeldStartup.java:236) - WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
Exception in thread "main" org.jboss.weld.exceptions.WeldException
at org.jboss.weld.executor.AbstractExecutorServices.checkForExceptions(AbstractExecutorServices.java:82)
at org.jboss.weld.executor.AbstractExecutorServices.invokeAllAndCheckForExceptions(AbstractExecutorServices.java:59)
at org.jboss.weld.executor.AbstractExecutorServices.invokeAllAndCheckForExceptions(AbstractExecutorServices.java:67)
at org.jboss.weld.bootstrap.ConcurrentBeanDeployer.addClasses(ConcurrentBeanDeployer.java:52)
at org.jboss.weld.bootstrap.BeanDeployment.createClasses(BeanDeployment.java:198)
at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:417)
at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:79)
at org.jboss.weld.environment.se.Weld.initialize(Weld.java:813)
at org.jboss.weld.environment.se.Weld.initialize(Weld.java:176)
at com.hoymiles.Entrypoint.main(Entrypoint.java:19)
Caused by: java.lang.OutOfMemoryError
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at java.base/java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:603)
at java.base/java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1006)
at org.jboss.weld.executor.AbstractExecutorServices.checkForExceptions(AbstractExecutorServices.java:73)
... 9 more
Caused by: java.lang.OutOfMemoryError: Java heap space
[cmd] /run.sh exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
Somebody has problem with DTU IP address? In my network this is not appear form 192.... address bu DTU has 10.10.....
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.