Hello all,
I have (mostly) migrated from 2.5 to 3.3, and am trying to get a few things working.
I had been largely text-based for items files and rules, with the items having been added in PaperUI.
I do have a bunch of dummy switches defined in the default.items file that don’t seem to be visible to OH3.3 (for example, switches to keep track of if certain automation are to be enabled)
Also, none of my DSL rules seem to be running.
Using my old method of troubleshooting, I went into one file (lights.rules), and made an insignificant change. The log then shows that the changed file was recognized (…[el.core.internal.ModelRepositoryImpl] - Loading model ‘lights.rules’), however I don’t get the usual second message. (Can’t recall what my logging level was on my old 2.5 system).
If I add an item, I also don’t get a message, but if there is a validation issue (unused variable), then I do get a message.
openhab.log:
2022-10-31 16:24:51.455 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'lights.rules'
2022-10-31 16:35:07.650 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'TOD.rules'
2022-10-31 16:35:39.465 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'locks.rules'
2022-10-31 16:35:40.876 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'locks.rules', using it anyway:
The value of the local variable mailBen is not used
2022-10-31 16:39:35.629 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'default.items'
2022-10-31 16:41:12.328 [INFO ] [ng.zwave.internal.protocol.ZWaveNode] - NODE 24: Maximum Awake time period reached, state SUC_ROUTE count 20, messages 2
2022-10-31 16:44:38.357 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'RF433.rules'
my locks.rules rule, of note, sends lots of log messages if locks are unlocked, locked, etc. The validation message seems to imply that the rule was processed, but yet it doesn’t seem to run when I aggressively and repeatedly lock/unlock my doors.
I have 15 different rule files, some of which are relatively complicated/involved. While some could be easily migrated to other formats, several don’t seem as intuitive to do so (scene handlers), and others seem near impossible (bathroom fan humidity rules that vary the targets based on the past average humidity and average humidity of the given floor).
My questions:
Is this a known issue for dummy switches (not connected to any physical device) in items files not working / not being visible in OH3.3? Is there a newer or better way of accomplishing this in OH3?
If I were to move (most) of my items over to OH3 web interface, using the same name (delete from items file first, then create in OH3 to avoid name conflict), would the persistence in influxdb continue uninterrupted?
Is there something I’m missing for my dsl .rules files to run in OH3? Is there a different way of debugging this?
default.items, with some example dummy switches
// snip
Switch FF_Front_Porch_Accessory_Outlet "Front Porch Accessory Switch" <light> (FF_Entryway) ["Lighting", "Switchable"] {channel="zwave:device:a204e4d4:node2:switch_binary"}
Number FF_Front_Porch_Accessory_Scene "Front Porch Accessory Scene" (SceneSwitch) {channel="zwave:device:a204e4d4:node2:scene_number"}
Switch TTS_WeatherAnnounce "Announce Weather" <sun> (gFakeSwitch)
Switch Lights_AutoBoysLights "Automated Lights in Boys Bedroom" <sun> (gFakeSwitch)
Switch Party "Party mode modification of rules" <none> (gFakeSwitch)
Switch ShutItDown "Shut it Down" <none> (gFakeSwitch)
Switch HallwayAlert "Hallway Alert" <none> (gFakeSwitch)
Switch secReport "Security Report" <none> (gFakeSwitch)
Switch twinklyTree "Twinkly Christmas Tree" <light> (gFakeSwitch)
Switch masterBedLights "Master Bed Lights" <light> (gFakeSwitch)
Dimmer masterBedLightsBrightness "Master Bed Light Brightness" <light>
String masterBedLightsProgram "Master Bed Lights Program"
String masterBedLightsCustom "Master Bed Lights Custom"
Color masterBedColor "Master Bed Lights Color"
Switch Dummy2 "Second Dummy" <none> (gFakeSwitch)
Log levels:
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 │ INFO
openhab.event.RuleRemovedEvent │ INFO
openhab.event.RuleStatusInfoEvent │ INFO
openhab.event.StartlevelEvent │ ERROR
openhab.event.ThingAddedEvent │ INFO
openhab.event.ThingRemovedEvent │ INFO
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.zwave │ INFO
org.ops4j.pax.url.mvn.internal.AetherBasedResolver │ ERROR
org.ops4j.pax.web.pax-web-runtime │ OFF
su.litvak.chromecast.api.v2.Channel │ ERROR
Thanks!