Hi!
I use Shelly devices over MQTT with JSON path transformation. Based on the fact, that the Shelly devices publishes many informations under the same topic I have a lot of topic content where I don’t defined a transformation. Now I got a lot log entries like this:
2022-11-21 17:11:59.962 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JSONPATH-transformation failed: Invalid path ‘$.params.switch:0.output’ in ‘{“src”:“shellypro4pm-083af27b540c”,“dst”:“shellypro4pm-083af27b540c/events”,“method”:“NotifyStatus”,“params”:{“ts”:1669047120.59,“switch:3”:{“id”:3,“aenergy”:{“by_minute”:[0.000,0.000,0.000],“minute_ts”:1669047119,“total”:0.000}}}}’
Possible solutions:
- Avoid the not interesting topic updated: not possible, controlled by the Shelly device
- Define a dummy transformation
- Set log level to ERROR and avoid the logging of the WARNINGS
I decided to change the log level - without success. Could anybody tell me, what’s the correct logger which I have to adjust? I tried
- tt.generic.ChannelStateTransformation
- org.openhab.binding.JSonPath
Both without any effect in the log file… Here’s the output of log:list in the openhab console:
openhab> log:list
Logger │ Level
───────────────────────────────────────────────────┼──────
ROOT │ WARN
javax.jmdns │ ERROR
javax.mail │ ERROR
openhab.event │ INFO
openhab.event.AddonEvent │ ERROR
openhab.event.ChannelDescriptionChangedEvent │ ERROR
openhab.event.InboxUpdatedEvent │ ERROR
openhab.event.ItemAddedEvent │ ERROR
openhab.event.ItemChannelLinkAddedEvent │ ERROR
openhab.event.ItemChannelLinkRemovedEvent │ ERROR
openhab.event.ItemRemovedEvent │ ERROR
openhab.event.ItemStateEvent │ ERROR
openhab.event.RuleAddedEvent │ ERROR
openhab.event.RuleRemovedEvent │ ERROR
openhab.event.RuleStatusInfoEvent │ ERROR
openhab.event.StartlevelEvent │ ERROR
openhab.event.ThingAddedEvent │ ERROR
openhab.event.ThingRemovedEvent │ ERROR
openhab.event.ThingStatusInfoEvent │ ERROR
openhab.event.ThingUpdatedEvent │ ERROR
org.apache.cxf.jaxrs.sse.SseEventSinkImpl │ ERROR
org.apache.cxf.phase.PhaseInterceptorChain │ ERROR
org.apache.karaf.jaas.modules.audit │ INFO
org.apache.karaf.kar.internal.KarServiceImpl │ ERROR
org.apache.karaf.shell.ssh.SshUtils │ ERROR
org.apache.karaf.shell.support │ OFF
org.apache.sshd │ WARN
org.eclipse.lsp4j │ OFF
org.jupnp │ ERROR
org.openhab │ INFO
org.openhab.binding.JSonPath │ OFF
org.ops4j.pax.url.mvn.internal.AetherBasedResolver │ ERROR
org.ops4j.pax.web.pax-web-runtime │ OFF
su.litvak.chromecast.api.v2.Channel │ ERROR
tt.generic.ChannelStateTransformation │ ERROR
Thanks for our support!