rule first_run
when
System started
then
var Timer pause
logInfo("Startup","Initializing GPIO signals")
sendCommand(b1_dd_switch, OFF)
sendCommand(b1_sd_switch, OFF)
sendCommand(b1_door_light, OFF)
sendCommand(b1_flood_light, OFF)
sendCommand(b1_carriage_lights, OFF)
sendCommand(b1_pump, OFF)
sendCommand(b1_drain_valve, OFF)
sendCommand(B1_Water_Status, OFF)
logInfo("Startup","System Initialized")
end
I added the logInfo lines because I was seeing something strange at startup as I watched the LEDs on the relay and the openhab.log for correlation.
The system loads the rules file, logs both messages then I get the following messages:
NTP Refresh Service has been started
Exec Refresh Service has been started
HTTP Refresh Service has been started
The LEDs on the relay board all come on when the Exec Refresh messages hits the log.
I did have rrd4j persistence with restoreOnStartup enabled, but eliminated that strategy for all items to see it it might be causing the issue.
Thanks