Skip to content
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

Ampelschaltung und Darstellung funktioniert nicht - Version: 2.0.4 #252

Closed
Tombra1889 opened this issue Apr 16, 2022 · 6 comments
Closed

Comments

@Tombra1889
Copy link

Hallo zusammen,
ich bin heute von der Version 1.6.20 auf die Version 2.0.4 umgestiegen.
Leider funktioniert nun die Ampelanzeige nicht mehr. Auch ein manueller Start führt nicht zu einem Gerätestart / einer Visualisierung.

image

Screen Shot 2022-04-16 at 10 18 16

Die Kommunikation via mqtt scheint korrekt zu funktionieren:

image

@camueller
Copy link
Owner

Da ich gestern die Ampelschaltung selbst verwendet habe, kann es kein grundsätzliches Problem sein.
Kannst Du ein Log bereitstellen? Dann kann ich mal einen Blick darauf werfen ...

@Tombra1889
Copy link
Author

Tombra1889 commented Apr 16, 2022

Danke für die schnelle Rückmeldung im Log konnte ich einige Fehler sehen:
grep ERROR -B 2 -A 35 /tmp/rolling-2022-04-16.log

2022-04-16 09:52:16,547 DEBUG [http-nio-8080-exec-3] d.a.s.h.HttpValidator [HttpValidator.java:42] null: On configured: read url=http://192.168.66.193:8087/getPlainValue/hmip.0.devices.3014F711A000259DxxxxxA32.channels.1.on data=null path=null extractionRegex=true factorToValue=null
2022-04-16 09:52:16,548 DEBUG [http-nio-8080-exec-3] d.a.s.a.ApplianceManager [ApplianceManager.java:283] F-xxxxxxxx-000000000003-00: Initializing appliance ...
2022-04-16 09:52:18,569 ERROR [http-nio-8080-exec-3] d.a.s.a.ApplianceManager [ApplianceManager.java:289] F-xxxxxxxx-000000000003-00: Error initializing appliance
java.lang.RuntimeException: Error connecting to pigpiod at localhost:8888
	at uk.pigpioj.PigpioSocket.connect(PigpioSocket.java:462)
	at uk.pigpioj.PigpioJ.newSocketImplementation(PigpioJ.java:35)
	at uk.pigpioj.PigpioJ.autoDetectedImplementation(PigpioJ.java:20)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.getPigpioInterface(ApplianceManager.java:99)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.init(ApplianceManager.java:285)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.startAppliances(ApplianceManager.java:220)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.restartAppliances(ApplianceManager.java:256)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.save(ApplianceManager.java:358)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.setSchedules(ApplianceManager.java:618)
	at de.avanux.smartapplianceenabler.webservice.SaeController.setSchedules(SaeController.java:416)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
	at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:920)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:663)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
--
2022-04-16 09:52:18,577 INFO [http-nio-8080-exec-3] d.a.s.a.Appliance [Appliance.java:318] F-xxxxxxxx-000000000001-00: Starting HttpSwitch
2022-04-16 09:52:18,578 INFO [http-nio-8080-exec-3] d.a.s.a.Appliance [Appliance.java:320] F-xxxxxxxx-000000000001-00: Switch off appliance initially
2022-04-16 09:52:18,579 ERROR [http-nio-8080-exec-3] d.a.s.a.ApplianceManager [ApplianceManager.java:306] F-xxxxxxxx-000000000001-00: Error starting appliance
java.lang.NullPointerException: null
	at de.avanux.smartapplianceenabler.appliance.Appliance.publishControlMessage(Appliance.java:348)
	at de.avanux.smartapplianceenabler.appliance.Appliance.start(Appliance.java:321)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.init(ApplianceManager.java:303)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.startAppliances(ApplianceManager.java:220)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.restartAppliances(ApplianceManager.java:256)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.save(ApplianceManager.java:358)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.setSchedules(ApplianceManager.java:618)
	at de.avanux.smartapplianceenabler.webservice.SaeController.setSchedules(SaeController.java:416)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
	at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:920)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:663)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
--
2022-04-16 09:52:18,582 INFO [http-nio-8080-exec-3] d.a.s.a.Appliance [Appliance.java:318] F-xxxxxxxx-000000000002-00: Starting HttpSwitch
2022-04-16 09:52:18,582 INFO [http-nio-8080-exec-3] d.a.s.a.Appliance [Appliance.java:320] F-xxxxxxxx-000000000002-00: Switch off appliance initially
2022-04-16 09:52:18,583 ERROR [http-nio-8080-exec-3] d.a.s.a.ApplianceManager [ApplianceManager.java:306] F-xxxxxxxx-000000000002-00: Error starting appliance
java.lang.NullPointerException: null
	at de.avanux.smartapplianceenabler.appliance.Appliance.publishControlMessage(Appliance.java:348)
	at de.avanux.smartapplianceenabler.appliance.Appliance.start(Appliance.java:321)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.init(ApplianceManager.java:303)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.startAppliances(ApplianceManager.java:220)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.restartAppliances(ApplianceManager.java:256)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.save(ApplianceManager.java:358)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.setSchedules(ApplianceManager.java:618)
	at de.avanux.smartapplianceenabler.webservice.SaeController.setSchedules(SaeController.java:416)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
	at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:920)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:663)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
--
2022-04-16 09:52:18,587 INFO [http-nio-8080-exec-3] d.a.s.a.Appliance [Appliance.java:318] F-xxxxxxxx-000000000003-00: Starting HttpSwitch
2022-04-16 09:52:18,587 INFO [http-nio-8080-exec-3] d.a.s.a.Appliance [Appliance.java:320] F-xxxxxxxx-000000000003-00: Switch off appliance initially
2022-04-16 09:52:18,589 ERROR [http-nio-8080-exec-3] d.a.s.a.ApplianceManager [ApplianceManager.java:306] F-xxxxxxxx-000000000003-00: Error starting appliance
java.lang.NullPointerException: null
	at de.avanux.smartapplianceenabler.appliance.Appliance.publishControlMessage(Appliance.java:348)
	at de.avanux.smartapplianceenabler.appliance.Appliance.start(Appliance.java:321)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.init(ApplianceManager.java:303)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.startAppliances(ApplianceManager.java:220)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.restartAppliances(ApplianceManager.java:256)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.save(ApplianceManager.java:358)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.setSchedules(ApplianceManager.java:618)
	at de.avanux.smartapplianceenabler.webservice.SaeController.setSchedules(SaeController.java:416)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
	at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:920)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:663)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
--
2022-04-16 09:55:14,023 DEBUG [Thread-4] d.a.s.m.MqttClient [MqttClient.java:140] ApplianceManager: Created MQTT client ApplianceManager
2022-04-16 09:55:14,064 DEBUG [Thread-4] d.a.s.a.ApplianceManager [ApplianceManager.java:283] F-xxxxxxxx-000000000001-00: Initializing appliance ...
2022-04-16 09:55:16,981 ERROR [Thread-4] d.a.s.a.ApplianceManager [ApplianceManager.java:289] F-xxxxxxxx-000000000001-00: Error initializing appliance
java.lang.RuntimeException: Error connecting to pigpiod at localhost:8888
	at uk.pigpioj.PigpioSocket.connect(PigpioSocket.java:462)
	at uk.pigpioj.PigpioJ.newSocketImplementation(PigpioJ.java:35)
	at uk.pigpioj.PigpioJ.autoDetectedImplementation(PigpioJ.java:20)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.getPigpioInterface(ApplianceManager.java:99)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.init(ApplianceManager.java:285)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.startAppliances(ApplianceManager.java:220)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.run(ApplianceManager.java:115)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:8888
Caused by: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:777)
	at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)
	at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:688)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:635)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:552)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:514)
	at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1050)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:829)
2022-04-16 09:55:16,982 DEBUG [Thread-4] d.a.s.a.ApplianceManager [ApplianceManager.java:291] F-xxxxxxxx-000000000001-00: Validating appliance ...
2022-04-16 09:55:16,982 INFO [Thread-4] d.a.s.a.Appliance [Appliance.java:290] F-xxxxxxxx-000000000001-00: Validating appliance configuration
2022-04-16 09:55:16,983 DEBUG [Thread-4] d.a.s.c.HttpSwitch [HttpSwitch.java:143] null: Validating configuration
2022-04-16 09:55:16,986 DEBUG [Thread-4] d.a.s.h.HttpValidator [HttpValidator.java:64] null: On configured: write url=http://192.168.66.193:8087/set/0_userdata.0.Homekit.Dehumidifier.Active?value=1 value=null factorToValue=null
2022-04-16 09:55:16,987 DEBUG [Thread-4] d.a.s.h.HttpValidator [HttpValidator.java:64] null: Off configured: write url=http://192.168.66.193:8087/set/0_userdata.0.Homekit.Dehumidifier.Active?value=0 value=null factorToValue=null
2022-04-16 09:55:16,988 DEBUG [Thread-4] d.a.s.h.HttpValidator [HttpValidator.java:42] null: On configured: read url=http://192.168.66.193:8087/getPlainValue/0_userdata.0.Homekit.Dehumidifier.Active data=null path=null extractionRegex=1 factorToValue=null
2022-04-16 09:55:16,988 DEBUG [Thread-4] d.a.s.m.HttpElectricityMeter [HttpElectricityMeter.java:147] null: Validating configuration
2022-04-16 09:55:16,988 DEBUG [Thread-4] d.a.s.m.HttpElectricityMeter [HttpElectricityMeter.java:148] null: configured: poll interval=60s
2022-04-16 09:55:16,990 DEBUG [Thread-4] d.a.s.h.HttpValidator [HttpValidator.java:42] null: Energy configured: read url=http://192.168.66.193:8087/getPlainValue/shelly.0.shellyplus1pm%23441793xxxxx8%231.Relay0.Energy data=null path=null extractionRegex=null factorToValue=0.001
2022-04-16 09:55:16,991 DEBUG [Thread-4] d.a.s.a.ApplianceManager [ApplianceManager.java:283] F-xxxxxxxx-000000000002-00: Initializing appliance ...
2022-04-16 09:55:19,011 ERROR [Thread-4] d.a.s.a.ApplianceManager [ApplianceManager.java:289] F-xxxxxxxx-000000000002-00: Error initializing appliance
java.lang.RuntimeException: Error connecting to pigpiod at localhost:8888
	at uk.pigpioj.PigpioSocket.connect(PigpioSocket.java:462)
	at uk.pigpioj.PigpioJ.newSocketImplementation(PigpioJ.java:35)
	at uk.pigpioj.PigpioJ.autoDetectedImplementation(PigpioJ.java:20)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.getPigpioInterface(ApplianceManager.java:99)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.init(ApplianceManager.java:285)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.startAppliances(ApplianceManager.java:220)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.run(ApplianceManager.java:115)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:8888
Caused by: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:777)
	at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)
	at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:688)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:635)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:552)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:514)
	at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1050)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:829)
2022-04-16 09:55:19,013 DEBUG [Thread-4] d.a.s.a.ApplianceManager [ApplianceManager.java:291] F-xxxxxxxx-000000000002-00: Validating appliance ...
2022-04-16 09:55:19,014 INFO [Thread-4] d.a.s.a.Appliance [Appliance.java:290] F-xxxxxxxx-000000000002-00: Validating appliance configuration
2022-04-16 09:55:19,014 DEBUG [Thread-4] d.a.s.c.HttpSwitch [HttpSwitch.java:143] null: Validating configuration
2022-04-16 09:55:19,014 DEBUG [Thread-4] d.a.s.h.HttpValidator [HttpValidator.java:64] null: On configured: write url=http://192.168.66.193:8087/set/hmip.0.devices.3014F711A000259DxxxxxA32.channels.1.on?value=true value=null factorToValue=null
2022-04-16 09:55:19,015 DEBUG [Thread-4] d.a.s.h.HttpValidator [HttpValidator.java:64] null: Off configured: write url=http://192.168.66.193:8087/set/hmip.0.devices.3014F711A000259DxxxxxA32.channels.1.on?value=false value=null factorToValue=null
2022-04-16 09:55:19,015 DEBUG [Thread-4] d.a.s.h.HttpValidator [HttpValidator.java:42] null: On configured: read url=http://192.168.66.193:8087/getPlainValue/hmip.0.devices.3014F711A000259DxxxxxA32.channels.1.on data=null path=null extractionRegex=true factorToValue=null
2022-04-16 09:55:19,015 DEBUG [Thread-4] d.a.s.a.ApplianceManager [ApplianceManager.java:283] F-xxxxxxxx-000000000003-00: Initializing appliance ...
2022-04-16 09:55:21,040 ERROR [Thread-4] d.a.s.a.ApplianceManager [ApplianceManager.java:289] F-xxxxxxxx-000000000003-00: Error initializing appliance
java.lang.RuntimeException: Error connecting to pigpiod at localhost:8888
	at uk.pigpioj.PigpioSocket.connect(PigpioSocket.java:462)
	at uk.pigpioj.PigpioJ.newSocketImplementation(PigpioJ.java:35)
	at uk.pigpioj.PigpioJ.autoDetectedImplementation(PigpioJ.java:20)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.getPigpioInterface(ApplianceManager.java:99)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.init(ApplianceManager.java:285)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.startAppliances(ApplianceManager.java:220)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.run(ApplianceManager.java:115)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:8888
Caused by: java.net.ConnectException: Connection refused
	at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:777)
	at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)
	at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:688)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:635)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:552)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:514)
	at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1050)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:829)
2022-04-16 09:55:21,041 DEBUG [Thread-4] d.a.s.a.ApplianceManager [ApplianceManager.java:291] F-xxxxxxxx-000000000003-00: Validating appliance ...
2022-04-16 09:55:21,041 INFO [Thread-4] d.a.s.a.Appliance [Appliance.java:290] F-xxxxxxxx-000000000003-00: Validating appliance configuration
2022-04-16 09:55:21,042 DEBUG [Thread-4] d.a.s.c.HttpSwitch [HttpSwitch.java:143] null: Validating configuration
2022-04-16 09:55:21,042 DEBUG [Thread-4] d.a.s.h.HttpValidator [HttpValidator.java:64] null: On configured: write url=http://192.168.66.193:8087/set/hmip.0.devices.3014F711A000259DxxxxxA32.channels.2.on?value=true value=null factorToValue=null
2022-04-16 09:55:21,042 DEBUG [Thread-4] d.a.s.h.HttpValidator [HttpValidator.java:64] null: Off configured: write url=http://192.168.66.193:8087/set/hmip.0.devices.3014F711A000259DxxxxxA32.channels.2.on?value=false value=null factorToValue=null
2022-04-16 09:55:21,042 DEBUG [Thread-4] d.a.s.h.HttpValidator [HttpValidator.java:42] null: On configured: read url=http://192.168.66.193:8087/getPlainValue/hmip.0.devices.3014F711A000259DxxxxxA32.channels.2.on data=null path=null extractionRegex=true factorToValue=null
2022-04-16 09:55:21,043 DEBUG [Thread-4] d.a.s.a.ApplianceManager [ApplianceManager.java:301] F-xxxxxxxx-000000000001-00: Starting appliance ...
2022-04-16 09:55:21,043 INFO [Thread-4] d.a.s.a.Appliance [Appliance.java:300] F-xxxxxxxx-000000000001-00: Starting appliance
2022-04-16 09:55:21,043 INFO [Thread-4] d.a.s.a.Appliance [Appliance.java:311] F-xxxxxxxx-000000000001-00: Starting HttpElectricityMeter
2022-04-16 09:55:21,044 DEBUG [Thread-4] d.a.s.m.HttpElectricityMeter [HttpElectricityMeter.java:185] null: Starting ...
2022-04-16 09:55:21,044 INFO [Thread-4] d.a.s.a.Appliance [Appliance.java:318] F-xxxxxxxx-000000000001-00: Starting HttpSwitch
2022-04-16 09:55:21,044 INFO [Thread-4] d.a.s.a.Appliance [Appliance.java:320] F-xxxxxxxx-000000000001-00: Switch off appliance initially
2022-04-16 09:55:21,046 ERROR [Thread-4] d.a.s.a.ApplianceManager [ApplianceManager.java:306] F-xxxxxxxx-000000000001-00: Error starting appliance
java.lang.NullPointerException: null
	at de.avanux.smartapplianceenabler.appliance.Appliance.publishControlMessage(Appliance.java:348)
	at de.avanux.smartapplianceenabler.appliance.Appliance.start(Appliance.java:321)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.init(ApplianceManager.java:303)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.startAppliances(ApplianceManager.java:220)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.run(ApplianceManager.java:115)
	at java.base/java.lang.Thread.run(Thread.java:829)
2022-04-16 09:55:21,046 DEBUG [Thread-4] d.a.s.a.ApplianceManager [ApplianceManager.java:301] F-xxxxxxxx-000000000002-00: Starting appliance ...
2022-04-16 09:55:21,047 INFO [Thread-4] d.a.s.a.Appliance [Appliance.java:300] F-xxxxxxxx-000000000002-00: Starting appliance
2022-04-16 09:55:21,047 INFO [Thread-4] d.a.s.a.Appliance [Appliance.java:318] F-xxxxxxxx-000000000002-00: Starting HttpSwitch
2022-04-16 09:55:21,047 INFO [Thread-4] d.a.s.a.Appliance [Appliance.java:320] F-xxxxxxxx-000000000002-00: Switch off appliance initially
2022-04-16 09:55:21,048 ERROR [Thread-4] d.a.s.a.ApplianceManager [ApplianceManager.java:306] F-xxxxxxxx-000000000002-00: Error starting appliance
java.lang.NullPointerException: null
	at de.avanux.smartapplianceenabler.appliance.Appliance.publishControlMessage(Appliance.java:348)
	at de.avanux.smartapplianceenabler.appliance.Appliance.start(Appliance.java:321)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.init(ApplianceManager.java:303)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.startAppliances(ApplianceManager.java:220)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.run(ApplianceManager.java:115)
	at java.base/java.lang.Thread.run(Thread.java:829)
2022-04-16 09:55:21,048 DEBUG [Thread-4] d.a.s.a.ApplianceManager [ApplianceManager.java:301] F-xxxxxxxx-000000000003-00: Starting appliance ...
2022-04-16 09:55:21,049 INFO [Thread-4] d.a.s.a.Appliance [Appliance.java:300] F-xxxxxxxx-000000000003-00: Starting appliance
2022-04-16 09:55:21,049 INFO [Thread-4] d.a.s.a.Appliance [Appliance.java:318] F-xxxxxxxx-000000000003-00: Starting HttpSwitch
2022-04-16 09:55:21,049 INFO [Thread-4] d.a.s.a.Appliance [Appliance.java:320] F-xxxxxxxx-000000000003-00: Switch off appliance initially
2022-04-16 09:55:21,050 ERROR [Thread-4] d.a.s.a.ApplianceManager [ApplianceManager.java:306] F-xxxxxxxx-000000000003-00: Error starting appliance
java.lang.NullPointerException: null
	at de.avanux.smartapplianceenabler.appliance.Appliance.publishControlMessage(Appliance.java:348)
	at de.avanux.smartapplianceenabler.appliance.Appliance.start(Appliance.java:321)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.init(ApplianceManager.java:303)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.startAppliances(ApplianceManager.java:220)
	at de.avanux.smartapplianceenabler.appliance.ApplianceManager.run(ApplianceManager.java:115)
	at java.base/java.lang.Thread.run(Thread.java:829)
2022-04-16 09:55:21,050 DEBUG [Thread-4] d.a.s.a.ApplianceManager [ApplianceManager.java:343] Holidays are NOT used.
2022-04-16 09:55:21,063 INFO [Thread-4] d.a.s.a.ApplianceManager [ApplianceManager.java:225] 3 appliance(s) configured.
2022-04-16 09:55:21,945 INFO [scheduling-1] d.a.s.m.MqttClient [MqttClient.java:73] Using MQTT broker tcp://127.0.0.1:1883
2022-04-16 09:55:21,946 DEBUG [scheduling-1] d.a.s.m.MqttClient [MqttClient.java:140] SaeController: Created MQTT client SaeController
2022-04-16 09:55:22,271 DEBUG [scheduling-1] d.a.s.m.MqttClient [MqttClient.java:268] SaeController: Messages subscribed: topic=sae/+/Meter
2022-04-16 09:55:22,277 DEBUG [scheduling-1] d.a.s.m.MqttClient [MqttClient.java:268] SaeController: Messages subscribed: topic=sae/+/Control
2022-04-16 09:55:22,280 INFO [scheduling-1] d.a.s.m.MqttClient [MqttClient.java:73] Using MQTT broker tcp://127.0.0.1:1883
2022-04-16 09:55:22,281 DEBUG [scheduling-1] d.a.s.m.MqttClient [MqttClient.java:140] SempController: Created MQTT client SempController
2022-04-16 09:55:22,596 DEBUG [scheduling-1] d.a.s.m.MqttClient [MqttClient.java:268] SempController: Messages subscribed: topic=sae/+/Meter
2022-04-16 09:55:22,603 DEBUG [scheduling-1] d.a.s.m.MqttClient [MqttClient.java:268] SempController: Messages subscribed: topic=sae/+/Control
2022-04-16 09:55:30,088 DEBUG [http-nio-8080-exec-10] d.a.s.w.SaeController [SaeController.java:990] Received request for Info
2022-04-16 09:55:30,088 DEBUG [http-nio-8080-exec-9] d.a.s.w.SaeController [SaeController.java:141] Received request for ApplianceHeaders
2022-04-16 09:55:30,104 DEBUG [http-nio-8080-exec-1] d.a.s.w.SaeController [SaeController.java:739] Received request for Settings
2022-04-16 09:55:30,108 DEBUG [http-nio-8080-exec-1] d.a.s.m.MqttClient [MqttClient.java:140] MqttClient: Created MQTT client MqttClient
2022-04-16 09:55:30,113 DEBUG [http-nio-8080-exec-9] d.a.s.w.SaeController [SaeController.java:151] Returning 3 ApplianceHeaders
2022-04-16 09:55:30,425 DEBUG [http-nio-8080-exec-1] d.a.s.m.MqttClient [MqttClient.java:193] MqttClient: MQTT connection available: true
2022-04-16 09:55:30,557 DEBUG [http-nio-8080-exec-1] d.a.s.w.SaeController [SaeController.java:787] Returning Settings Settings{mqttSettings=MqttSettings{brokerHost='127.0.0.1', brokerPort=1883, brokerUsername=null, brokerPasswort=null, brokerAvailable=true}, holidaysEnabled=false, holidaysUrl=null, modbusSettings=null, notificationCommand=null}
2022-04-16 09:55:30,704 DEBUG [http-nio-8080-exec-3] d.a.s.w.SaeController [SaeController.java:864] Received request for ApplianceStatus
2022-04-16 09:55:55,809 DEBUG [http-nio-8080-exec-4] d.a.s.s.w.SempController [SempController.java:89] Device info/status/planning requested.
2022-04-16 09:55:55,969 DEBUG [http-nio-8080-exec-4] d.a.s.s.w.SempController [SempController.java:162] F-xxxxxxxx-000000000001-00: DeviceInfo{characteristics=Characteristics{maxPowerConsumption=420, minPowerConsumption=null, minOnTime=1200, maxOnTime=null, minOffTime=300, maxOffTime=null}, capabilities=Capabilities{currentPowerMethod=Measurement, absoluteTimestamps=false, interruptionsAllowed=true, optionalEnergy=true}}
2022-04-16 09:55:55,971 DEBUG [http-nio-8080-exec-4] d.a.s.s.w.SempController [SempController.java:162] F-xxxxxxxx-000000000002-00: DeviceInfo{characteristics=Characteristics{maxPowerConsumption=25, minPowerConsumption=null, minOnTime=600, maxOnTime=null, minOffTime=null, maxOffTime=null}, capabilities=Capabilities{currentPowerMethod=Estimation, absoluteTimestamps=false, interruptionsAllowed=true, optionalEnergy=true}}
2022-04-16 09:55:55,972 DEBUG [http-nio-8080-exec-4] d.a.s.s.w.SempController [SempController.java:162] F-xxxxxxxx-000000000003-00: DeviceInfo{characteristics=Characteristics{maxPowerConsumption=11, minPowerConsumption=null, minOnTime=600, maxOnTime=null, minOffTime=null, maxOffTime=null}, capabilities=Capabilities{currentPowerMethod=Estimation, absoluteTimestamps=false, interruptionsAllowed=true, optionalEnergy=true}}
2022-04-16 09:55:55,973 DEBUG [http-nio-8080-exec-4] d.a.s.s.w.SempController [SempController.java:333] F-xxxxxxxx-000000000001-00: Reporting device status from control
2022-04-16 09:55:56,019 DEBUG [http-nio-8080-exec-4] d.a.s.s.w.SempController [SempController.java:342] F-xxxxxxxx-000000000001-00: DeviceStatus{eMSignalsAccepted=false, status=Off, errorCode=null}
2022-04-16 09:55:56,021 DEBUG [http-nio-8080-exec-4] d.a.s.s.w.SempController [SempController.java:352] F-xxxxxxxx-000000000001-00: Reporting power info from device characteristics.
2022-04-16 09:55:56,030 DEBUG [http-nio-8080-exec-4] d.a.s.s.w.SempController [SempController.java:362] F-xxxxxxxx-000000000001-00: PowerInfo{averagePower=0, minPower=null, maxPower=null, timestamp=0, averagingInterval=60}
2022-04-16 09:55:56,032 DEBUG [http-nio-8080-exec-4] d.a.s.s.w.SempController [SempController.java:333] F-xxxxxxxx-000000000002-00: Reporting device status from control
2022-04-16 09:55:56,034 DEBUG [http-nio-8080-exec-4] d.a.s.s.w.SempController [SempController.java:342] F-xxxxxxxx-000000000002-00: DeviceStatus{eMSignalsAccepted=false, status=Off, errorCode=null}
--
2022-04-16 10:24:00,749 DEBUG [http-nio-8080-exec-9] d.a.s.w.SaeController [SaeController.java:864] Received request for ApplianceStatus
2022-04-16 10:24:12,064 DEBUG [http-nio-8080-exec-3] d.a.s.w.SaeController [SaeController.java:511] F-xxxxxxxx-000000000001-00: Received request to suggest runtime
2022-04-16 10:24:12,066 ERROR [http-nio-8080-exec-3] d.a.s.w.SaeController [SaeController.java:521] Error in SaeController
java.lang.NullPointerException: null
	at de.avanux.smartapplianceenabler.webservice.SaeController.suggestRuntime(SaeController.java:514)
	at de.avanux.smartapplianceenabler.webservice.SaeController.suggestRuntime(SaeController.java:491)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:526)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
--
	at java.base/java.lang.Thread.run(Thread.java:829)
2022-04-16 10:24:20,958 DEBUG [http-nio-8080-exec-4] d.a.s.w.SaeController [SaeController.java:594] F-xxxxxxxx-000000000001-00: Received request to set runtime to 18300s
2022-04-16 10:24:20,959 ERROR [http-nio-8080-exec-4] d.a.s.w.SaeController [SaeController.java:580] Error in SaeController
java.lang.NullPointerException: null
	at de.avanux.smartapplianceenabler.webservice.SaeController.activateTimeframe(SaeController.java:717)
	at de.avanux.smartapplianceenabler.webservice.SaeController.setRuntimeDemand(SaeController.java:595)
	at de.avanux.smartapplianceenabler.webservice.SaeController.setRuntimeDemand(SaeController.java:576)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
	at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:920)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:663)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:526)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
--
2022-04-16 10:24:22,904 DEBUG [http-nio-8080-exec-10] d.a.s.s.w.SempController [SempController.java:300] F-xxxxxxxx-000000000001-00: Received control request: on=true
2022-04-16 10:24:22,918 DEBUG [http-nio-8080-exec-10] d.a.s.a.Appliance [Appliance.java:428] F-xxxxxxxx-000000000001-00: Setting appliance state to ON
2022-04-16 10:24:22,920 ERROR [http-nio-8080-exec-10] d.a.s.s.w.SempController [SempController.java:293] Error in SempController
java.lang.NullPointerException: null
	at de.avanux.smartapplianceenabler.appliance.Appliance.publishControlMessage(Appliance.java:348)
	at de.avanux.smartapplianceenabler.appliance.Appliance.setApplianceState(Appliance.java:429)
	at de.avanux.smartapplianceenabler.semp.webservice.SempController.em2Device(SempController.java:314)
	at de.avanux.smartapplianceenabler.semp.webservice.SempController.em2Device(SempController.java:291)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:660)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:526)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)

@Tombra1889
Copy link
Author

Hab es hinbekommen, es lag an der fehlenden pigpiod Installation. Ich hatte es als optional interpretiert, da ich die GPIOs nicht verwende.

Trotzdem will ich mal danke sagen zu diesem super Projekt!

@camueller
Copy link
Owner

camueller commented Apr 17, 2022

Das von Dir beobachtete Verhalten ist ein Fehler: pigpiod soll nur notwendig sein, wenn tatsächlich GPIOs verwendet werden. Bei SAE 1.6 ist das so, aber bei SAE 2.0 hat sich da ein Fehler eingeschlichen. Das habe ich gerade behoben für die nächste Version.

@Tombra1889
Copy link
Author

Jetzt hab ich leider zusätzlich noch ein Problem mit den Zeitplänen, heute wurden keine Geräte geschaltet und auch für morgen sind keine Zeiten eingeplant:

image

Ein manuelles Schalten hat aber zu einer Verbrauchserfassung geführt:
image

@camueller
Copy link
Owner

Zeitpläne sind (Laufzeit-) Anforderungen und habe erstmal nicht der Leistungsmessung zu tun (ausser bein Anlaufstromerkennung). Ich habe gerade den Geschirrspüler eingeschaltet - Anlaufstromerkennung hat funktioniert und Laufzeitanforderung an den SHM wurde gestellt. Auch bei Geräten ohne Anlaufstromerkennung mit Zeitplänen funktioniert die Laufzeitanforderung an den SHM. Ich kann also hier keinen Fehler feststellen.

Vielleicht hast Du die Zeitpläne bei Dir deaktiviert?
Ansonsten verweise ich Dich zur Diagnose hierher: https://github.com/camueller/SmartApplianceEnabler/blob/master/doc/QA_DE.md

Weitere Fragen bitte im Forum - dieser Issue ist ja geschlossen: https://github.com/camueller/SmartApplianceEnabler/discussions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants