Raspberry Pi 4 Loads with openhab but with multiple errors

  • Platform information:
    • Hardware: Raspberry Pi 4 with 16g

    • openHAB version: Latest
      So the Pi boots and I get multiple error messages in the log. below is just one set. Do I need to redo the whole install, or can this be fixed in current config?

2020-04-11 16:23:50.009 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule ‘Set random image URLs’: null

2020-04-11 16:24:00.007 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule ‘Set random image URLs’: null

2020-04-11 16:24:00.010 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule ‘Set random wifi variations’: The name ‘Wifi_Level’ cannot be resolved to an item or type; line 128, column 16, length 10

2020-04-11 16:24:10.008 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule ‘Set random image URLs’: null

2020-04-11 16:24:20.007 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule ‘Set random wifi variations’: The name ‘Wifi_Level’ cannot be resolved to an item or type; line 128, column 16, length 10

2020-04-11 16:24:20.009 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule ‘Set random image URLs’: null

2020-04-11 16:24:30.013 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule ‘Set random image URLs’: null

2020-04-11 16:24:40.011 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule ‘Set random image URLs’: null

2020-04-11 16:24:40.019 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule ‘Set random wifi variations’: The name ‘Wifi_Level’ cannot be resolved to an item or type; line 128, column 16, length 10

Did you load with a demo version?
If some items are not setup properly to your situation you get messages like this.

1 Like

If you wish help here provide reasonable information without being asked.

Is this was an upgrade restarting OpenHAB seems to be expected, up to 3 times for some people.

1 Like

Did you install the openhabian image or use apt-get to install?

…and there is a coding error in the Line 128 of your Rule-Script !!

Hi All, and thanks for the replies. @Bruce_Osborne , I quite agree I did give limited info. And I apologize. I really wasnt sure how much to say. You wont be surprised to learn that Im a complete novice in more ways than one.
So.
I loaded from an image,
Then under youtube advice changed the root directory onto a USB ( as that guy said micro SD’s can fail more often than not) That all worked fine.
Ive changed the passwords… works fine…
Loaded mosquitoe… worked fine.
I access via the Pi via wifi and that works fine. Ive made the IP address static and that works fine (based off the fact I can access it)

Looked at the config files and browsed the demo folder. This is where things i believe may have gone wrong. Tried changing some names of things and items and locations. My demo in the browser no longer exists at all.
Within the the browser BASIC UI says there is no directory. CLASSIC UI just loads with script, and there is no demo.

I have
openhab log viewer,
Openhab Help,
Basic Ui
Classic UI
Habpanel
Home Builder
Paper Ui
Rest AUI
Habot
Habmin

all loaded an all seem to work.
Ive loaded an Openhab cloud and I played around with a VPN.

So I guess my question is why am i getting all those ERROR MSGs, can I fix the demo and why are basic and classic not working ? Oh yeah, how do i fix the line 128, column 16, length 10

Do I need to start from square one and redo the entire install?

So I guess you used an OpenHABian image? That can be important information.

Yeah thats correct

2020-04-11 16:24:00.010 [ERROR] [ntime.internal.engine.ExecuteRuleJob] - Error during the execution of rule ‘Set random wifi variations’: The name ‘Wifi_Level’ cannot be resolved to an item or type; line 128, column 16, length 10

it says
Error during the execution of rule ‘Set random wifi variations’:

find the rules file that contains a rule named ‘Set random wifi variations’:

it says

The name ‘Wifi_Level’ cannot be resolved to an item or type;

look at

line 128, column 16, length 10

for clues

1 Like

I’m having a similar problem after upgrading to openHAB 2.5.5-1 from 2.5.2 using openhabian-config (Update/Upgrade) on a Pi4

My log file is cluttered with tons of “demo” entries (e.g. below)

2020-05-24 11:40:20.016 [vent.ItemStateChangedEvent] - Wifi_Level changed from 3 to 1
2020-05-24 11:40:20.024 [vent.ItemStateChangedEvent] - ImageURL changed from https://www.placecage.com/640/480 to https://www.placecage.com/320/240
2020-05-24 11:40:30.018 [vent.ItemStateChangedEvent] - ImageURL changed from https://www.placecage.com/320/240 to https://www.fillmurray.com/320/240
2020-05-24 11:40:40.016 [vent.ItemStateChangedEvent] - Wifi_Level changed from 1 to 0
2020-05-24 11:40:40.030 [vent.ItemStateChangedEvent] - ImageURL changed from https://www.fillmurray.com/320/240 to https://www.placecage.com/c/480/360
2020-05-24 11:41:00.021 [vent.ItemStateChangedEvent] - ImageURL changed from https://www.placecage.com/c/480/360 to https://www.placecage.com/480/360

Previously, I’ve been able to eliminate the clutter by moving the demo.* files to a separate sub-directory ( openhab2-conf/.openhab demo files ), clearing the cache, resetting permissions and rebooting a few times. This no longer gets rid of the junk.

In HABMin/Automation/Rules, I see a demo (.rules) which I am unable to delete or modify.

How do I get rid of/disable the demo.items, things, rules, sitemap etc so they’re not in my way?