I did a fresh openhabian installation now and restored my 3.4.2 backup.
I am now running openhab 4.0.4.
Also installed mosquitto mqtt and zigbee2mqtt using openhabian config.
Then i performed the recommended way to update my blockly rules: Rules Blockly | openHAB
But by re-saving some of the rules i am getting log errors:
2023-11-08 11:30:30.847 [ERROR] [automation.internal.RuleRegistryImpl] - The rule '4d741a5a40' is not updated, the new version is invalid
java.lang.IllegalArgumentException: The rule '4d741a5a40' has incorrect configurations
at org.openhab.core.automation.internal.RuleRegistryImpl.resolveConfigurations(RuleRegistryImpl.java:487) ~[?:?]
at org.openhab.core.automation.internal.RuleRegistryImpl.resolveRuleByTemplate(RuleRegistryImpl.java:364) ~[?:?]
at org.openhab.core.automation.internal.RuleRegistryImpl.updated(RuleRegistryImpl.java:433) ~[?:?]
at org.openhab.core.automation.internal.RuleRegistryImpl.updated(RuleRegistryImpl.java:1) ~[?:?]
at org.openhab.core.common.registry.AbstractRegistry.updated(AbstractRegistry.java:1) ~[?:?]
at org.openhab.core.common.registry.AbstractProvider.notifyListeners(AbstractProvider.java:66) ~[?:?]
at org.openhab.core.common.registry.AbstractProvider.notifyListenersAboutUpdatedElement(AbstractProvider.java:91) ~[?:?]
at org.openhab.core.common.registry.AbstractManagedProvider.update(AbstractManagedProvider.java:118) ~[?:?]
at org.openhab.core.common.registry.AbstractRegistry.update(AbstractRegistry.java:361) ~[?:?]
at org.openhab.core.automation.rest.internal.RuleResource.update(RuleResource.java:292) ~[?:?]
at jdk.internal.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179) ~[bundleFile:3.4.5]
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) ~[bundleFile:3.4.5]
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:201) ~[bundleFile:3.4.5]
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:104) ~[bundleFile:3.4.5]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59) ~[bundleFile:3.4.5]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96) ~[bundleFile:3.4.5]
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) ~[bundleFile:3.4.5]
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) ~[bundleFile:3.4.5]
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) ~[bundleFile:3.4.5]
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) ~[bundleFile:3.4.5]
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) ~[bundleFile:3.4.5]
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) ~[bundleFile:3.4.5]
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:225) ~[bundleFile:3.4.5]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:298) ~[bundleFile:3.4.5]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPut(AbstractHTTPServlet.java:234) ~[bundleFile:3.4.5]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:520) ~[bundleFile:4.0.4]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:273) ~[bundleFile:3.4.5]
at org.ops4j.pax.web.service.spi.servlet.OsgiInitializedServlet.service(OsgiInitializedServlet.java:102) ~[bundleFile:?]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1656) ~[bundleFile:9.4.50.v20221201]
at org.ops4j.pax.web.service.spi.servlet.OsgiFilterChain.doFilter(OsgiFilterChain.java:100) ~[bundleFile:?]
at org.ops4j.pax.web.service.jetty.internal.PaxWebServletHandler.doHandle(PaxWebServletHandler.java:310) ~[bundleFile:?]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:234) ~[bundleFile:9.4.50.v20221201]
at org.ops4j.pax.web.service.jetty.internal.PrioritizedHandlerCollection.handle(PrioritizedHandlerCollection.java:96) ~[bundleFile:?]
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:722) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.Server.handle(Server.java:516) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) ~[bundleFile:9.4.50.v20221201]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.IllegalArgumentException: Required configuration property missing: "group"!
at org.openhab.core.automation.internal.RuleRegistryImpl.processValue(RuleRegistryImpl.java:577) ~[?:?]
at org.openhab.core.automation.internal.RuleRegistryImpl.validateConfiguration(RuleRegistryImpl.java:517) ~[?:?]
at org.openhab.core.automation.internal.RuleRegistryImpl.resolveConfigurations(RuleRegistryImpl.java:483) ~[?:?]
... 67 more
==> /var/log/openhab/events.log <==
2023-11-08 11:30:30.904 [INFO ] [openhab.event.RuleUpdatedEvent ] - Rule '4d741a5a40' has been updated.
and
2023-11-08 11:29:12.897 [ERROR] [automation.internal.RuleRegistryImpl] - The rule '36f9aeef3a' is not updated, the new version is invalid
java.lang.IllegalArgumentException: The rule '36f9aeef3a' has incorrect configurations
at org.openhab.core.automation.internal.RuleRegistryImpl.resolveConfigurations(RuleRegistryImpl.java:487) ~[?:?]
at org.openhab.core.automation.internal.RuleRegistryImpl.resolveRuleByTemplate(RuleRegistryImpl.java:364) ~[?:?]
at org.openhab.core.automation.internal.RuleRegistryImpl.updated(RuleRegistryImpl.java:433) ~[?:?]
at org.openhab.core.automation.internal.RuleRegistryImpl.updated(RuleRegistryImpl.java:1) ~[?:?]
at org.openhab.core.common.registry.AbstractRegistry.updated(AbstractRegistry.java:1) ~[?:?]
at org.openhab.core.common.registry.AbstractProvider.notifyListeners(AbstractProvider.java:66) ~[?:?]
at org.openhab.core.common.registry.AbstractProvider.notifyListenersAboutUpdatedElement(AbstractProvider.java:91) ~[?:?]
at org.openhab.core.common.registry.AbstractManagedProvider.update(AbstractManagedProvider.java:118) ~[?:?]
at org.openhab.core.common.registry.AbstractRegistry.update(AbstractRegistry.java:361) ~[?:?]
at org.openhab.core.automation.rest.internal.RuleResource.update(RuleResource.java:292) ~[?:?]
at jdk.internal.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179) ~[bundleFile:3.4.5]
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) ~[bundleFile:3.4.5]
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:201) ~[bundleFile:3.4.5]
at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:104) ~[bundleFile:3.4.5]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59) ~[bundleFile:3.4.5]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96) ~[bundleFile:3.4.5]
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) ~[bundleFile:3.4.5]
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) ~[bundleFile:3.4.5]
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) ~[bundleFile:3.4.5]
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) ~[bundleFile:3.4.5]
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) ~[bundleFile:3.4.5]
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) ~[bundleFile:3.4.5]
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:225) ~[bundleFile:3.4.5]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:298) ~[bundleFile:3.4.5]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPut(AbstractHTTPServlet.java:234) ~[bundleFile:3.4.5]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:520) ~[bundleFile:4.0.4]
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:273) ~[bundleFile:3.4.5]
at org.ops4j.pax.web.service.spi.servlet.OsgiInitializedServlet.service(OsgiInitializedServlet.java:102) ~[bundleFile:?]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1656) ~[bundleFile:9.4.50.v20221201]
at org.ops4j.pax.web.service.spi.servlet.OsgiFilterChain.doFilter(OsgiFilterChain.java:100) ~[bundleFile:?]
at org.ops4j.pax.web.service.jetty.internal.PaxWebServletHandler.doHandle(PaxWebServletHandler.java:310) ~[bundleFile:?]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:234) ~[bundleFile:9.4.50.v20221201]
at org.ops4j.pax.web.service.jetty.internal.PrioritizedHandlerCollection.handle(PrioritizedHandlerCollection.java:96) ~[bundleFile:?]
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:722) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.Server.handle(Server.java:516) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) ~[bundleFile:9.4.50.v20221201]
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) ~[bundleFile:9.4.50.v20221201]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.IllegalArgumentException: Required configuration property missing: "sceneController"!
at org.openhab.core.automation.internal.RuleRegistryImpl.processValue(RuleRegistryImpl.java:577) ~[?:?]
at org.openhab.core.automation.internal.RuleRegistryImpl.validateConfiguration(RuleRegistryImpl.java:517) ~[?:?]
at org.openhab.core.automation.internal.RuleRegistryImpl.resolveConfigurations(RuleRegistryImpl.java:483) ~[?:?]
... 67 more
==> /var/log/openhab/events.log <==
2023-11-08 11:29:12.937 [INFO ] [openhab.event.RuleUpdatedEvent ] - Rule '36f9aeef3a' has been updated.
The code of the rules looks the following:
configuration: {}
triggers:
- id: "1"
configuration:
itemName: Steckdose_Gosund_4_Steckdose_Gosund_4_Power
type: core.ItemStateChangeTrigger
conditions: []
actions:
- inputs: {}
id: "2"
configuration:
blockSource: <xml
xmlns="https://developers.google.com/blockly/xml"><variables><variable
id="mypZ$K`tW=E{1N-cfu8Z">HOleistung</variable></variables><block
type="variables_set" id="z6sDTB01J06{k5x1Fw(l" x="160" y="127"><field
name="VAR" id="mypZ$K`tW=E{1N-cfu8Z">HOleistung</field><value
name="VALUE"><block type="oh_getitem_state"
id="1!@lj)qr)}-uq+~]3e+V"><value name="itemName"><shadow type="oh_item"
id="*xvwXacdp-[+Y-^+xqOe"><mutation
itemName="Steckdose_Gosund_4_Steckdose_Gosund_4_Power"
itemLabel="HomeOffice Leistung"></mutation><field
name="itemName">Steckdose_Gosund_4_Steckdose_Gosund_4_Power</field></shadow></value></block></value><next><block
type="controls_if" id="RHksCA}Zl6@h,t|WbHpo"><mutation
else="1"></mutation><value name="IF0"><block type="logic_compare"
id="q8H$Z`PWPfX,k)~Apr:."><field name="OP">GT</field><value
name="A"><block type="variables_get" id="|b^1MJ{A(vm}0;CsuPw1"><field
name="VAR"
id="mypZ$K`tW=E{1N-cfu8Z">HOleistung</field></block></value><value
name="B"><block type="math_number" id="^Q,PmT`#=2l[n~p72=U_"><field
name="NUM">50</field></block></value></block></value><statement
name="DO0"><block type="oh_event" id="Ac-*}A{jH0qKGSK}Pfzg"><field
name="eventType">sendCommand</field><value name="value"><shadow
type="text" id="s;^4wfzWcy(nymhY1S^/"><field
name="TEXT">80</field></shadow></value><value name="itemName"><shadow
type="oh_item" id="%]V-fh5,Mv@Q8%9l`dXx"><mutation
itemName="Monitorlicht_GlobalBrightness" itemLabel="Monitorlicht
Helligkeit "></mutation><field
name="itemName">Monitorlicht_GlobalBrightness</field></shadow></value><next><block
type="oh_event" id="`LuziCuSJ^y:q}Do((oN"><field
name="eventType">sendCommand</field><value name="value"><shadow
type="text" id="M22TrH~1Xd._;6^8jU)d"><field
name="TEXT">ON</field></shadow></value><value name="itemName"><shadow
type="oh_item" id="5|DKnx(Endu:M.*C|w)a"><mutation
itemName="Kolbenlampe_Schalter" itemLabel="Schalter"></mutation><field
name="itemName">Kolbenlampe_Schalter</field></shadow></value></block></next></block></statement><statement
name="ELSE"><block type="oh_event" id="WJhKm.(1U[mlp*SscV9U"><field
name="eventType">sendCommand</field><value name="value"><shadow
type="text" id="ke+s#4T])d1-=iFYHp0U"><field
name="TEXT">OFF</field></shadow></value><value name="itemName"><shadow
type="oh_item" id="W;yxpeA!6}b*e#EzYaHh"><mutation
itemName="Kolbenlampe_Schalter" itemLabel="Schalter"></mutation><field
name="itemName">Kolbenlampe_Schalter</field></shadow></value><next><block
type="oh_event" id="TOBOWwh%6STj/%@0]5^1"><field
name="eventType">sendCommand</field><value name="value"><shadow
type="text" id="0=~pS4y*AEV^6+7IO_2B"><field
name="TEXT">0</field></shadow></value><value name="itemName"><shadow
type="oh_item" id="AdF?n!GMByBmMlw3xy=)"><mutation
itemName="Monitorlicht_GlobalBrightness" itemLabel="Monitorlicht
Helligkeit "></mutation><field
name="itemName">Monitorlicht_GlobalBrightness</field></shadow></value></block></next></block></statement></block></next></block></xml>
type: application/javascript
script: >
var HOleistung;
HOleistung = items.getItem('Steckdose_Gosund_4_Steckdose_Gosund_4_Power').state;
if (HOleistung > 50) {
items.getItem('Monitorlicht_GlobalBrightness').sendCommand('80');
items.getItem('Kolbenlampe_Schalter').sendCommand('ON');
} else {
items.getItem('Kolbenlampe_Schalter').sendCommand('OFF');
items.getItem('Monitorlicht_GlobalBrightness').sendCommand('0');
}
type: script.ScriptAction
and
configuration: {}
triggers:
- id: "2"
configuration:
cronExpression: 0 0/8 * * * ? *
type: timer.GenericCronTrigger
conditions:
- inputs: {}
id: "1"
configuration:
itemName: Steckdose_Gosund_2
state: ON
operator: =
type: core.ItemStateCondition
- inputs: {}
id: "3"
configuration:
startTime: 07:00
endTime: 23:00
type: core.TimeOfDayCondition
actions:
- inputs: {}
id: "4"
configuration:
blockSource: <xml xmlns="https://developers.google.com/blockly/xml"><block
type="oh_event" id="1(,pqS}vg+5SN.,#%%Y/" x="267" y="362"><field
name="eventType">sendCommand</field><value name="value"><shadow
type="text" id="qpNW,%)Oc]grCWGC;.7("><field name="TEXT">Öffne My Page
und starte Seite 3</field></shadow></value><value
name="itemName"><shadow type="oh_item"
id="/x+)eFc28^?ICYh+?n}:"><mutation itemName="EchoBuro_Befehl"
itemLabel="Büro Befehl"></mutation><field
name="itemName">EchoBuro_Befehl</field></shadow></value></block></xml>
type: application/javascript
script: >
items.getItem('EchoBuro_Befehl').sendCommand('Öffne My Page und starte
Seite 3');
type: script.ScriptAction
However, when i run the blockly script manually it works …
Also i do have this in the log:
2023-11-08 11:56:41.130 [WARN ] [rnal.defaultscope.ScriptBusEventImpl] - State '544.6-196' cannot be parsed for item 'Hausverbrauch_Leistung'.
2023-11-08 11:56:41.136 [WARN ] [rnal.defaultscope.ScriptBusEventImpl] - State '544.6-196' cannot be parsed for item 'Solar_Eigenverbrauch'.
2023-11-08 11:56:41.141 [WARN ] [rnal.defaultscope.ScriptBusEventImpl] - State 'NaN' cannot be parsed for item 'Solar_Eigenverbrauch_prozent'.
2023-11-08 11:56:41.146 [WARN ] [rnal.defaultscope.ScriptBusEventImpl] - State 'NaN' cannot be parsed for item 'Solar_quote'.
2023-11-08 11:56:41.151 [WARN ] [rnal.defaultscope.ScriptBusEventImpl] - State 'NaN' cannot be parsed for item 'Hausverbrauch_Openhasb_Background'.
Seems like a unit mismatch (?).
However i set all the item units in the item state description.
Dont know what to do…
edit: I managed to fix the one above by putting Quantity conversion in blockly all over the place …
Maybe one of you can help me Thanks!
edit: Also i am getting so many “item updated to …” logs even if nothing changed on the item value.
2023-11-08 14:36:55.130 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Network_simon_phone_online' updated to ON
2023-11-08 14:36:55.532 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Network_simon_phone_online' updated to ON
2023-11-08 14:37:55.795 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Network_simon_phone_online' updated to ON
2023-11-08 14:37:55.917 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Network_simon_phone_online' updated to ON
2023-11-08 14:38:56.179 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Network_simon_phone_online' updated to ON
2023-11-08 14:38:56.304 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Network_simon_phone_online' updated to ON
2023-11-08 14:39:57.830 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Network_simon_phone_online' updated to ON
2023-11-08 14:41:01.961 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Network_simon_phone_online' updated to ON
2023-11-08 14:41:02.261 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Network_simon_phone_online' updated to ON
2023-11-08 14:42:02.449 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Network_simon_phone_online' updated to ON
2023-11-08 14:42:02.669 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Network_simon_phone_online' updated to ON
2023-11-08 14:43:02.751 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Network_simon_phone_online' updated to ON
2023-11-08 14:43:03.079 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Network_simon_phone_online' updated to ON
2023-11-08 14:44:03.376 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Network_simon_phone_online' updated to ON
2023-11-08 14:44:04.416 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Network_simon_phone_online' updated to ON
2023-11-08 14:45:04.658 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Network_simon_phone_online' updated to ON
2023-11-08 14:45:04.832 [INFO ] [openhab.event.ItemStateUpdatedEvent ] - Item 'Network_simon_phone_online' updated to ON
This was not the case in Openhab 3 log. I am getting spammed in the log file. Really hard to solve the issues like this … Is this normal in Openhab 4?
Also my main UI keeps crashing from time to time. Log is still alive but main UI just doenst responde anymore. Have to reboot to get it back alive. CPU load is very minor (~1-5%) but RAM is ~50-80%. I am really confused about the amount of “item updated to …” in the log.