Help..."Cannot reference the field 'OFF' before it is defined"

The first one is a known bug. Based on timing of startup, roles can start running before the Rules Engine is ready. I assume the error only occurs during startup and not every time.

The second one is just a warning. You are not using the best syntax for defining the lambda. See Reusable Functions: A simple lambda example with copious notes.

Also, see 3 different methods to use scenes with Google Home & openHAB and A simple scene management: finally a good use of scripts for far better approaches to implement lighting scenes than HashMaps.

1 Like