Hi @toggledbits
I'm noticing a new issue: the state is becoming null again in this sequence of operations.
Complete sequence of the test:
- Reboot the VM
- Resume with the same state

- Than
root@reactor:/home/wilson/reactor# systemctl stop reactor
root@reactor:/home/wilson/reactor# systemctl start reactor
- Update value to null

I'm trying to understand the error logs, and I only recognize the HTTP issue we're discussing in another chat; I can't make sense of the rest—sorry. I'm sending the full log starting from the last line where the variable is set to null, in case you can spot anything.
[latest-26177]2026-06-28T18:39:56.863Z <app:null> Reactor build latest-26177-3f86f4af starting on v24.17.0 /usr/bin/node
[latest-26177]2026-06-28T18:39:56.864Z <app:null> Process ID 1376 user/group 1000/1000; bare-metal; platform linux/x64 #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026; locale en_US.UTF-8
[latest-26177]2026-06-28T18:39:56.864Z <app:null> Basedir /home/wilson/reactor; data in /home/wilson/reactor/storage
[latest-26177]2026-06-28T18:39:56.865Z <app:null> NODE_PATH=/home/wilson/reactor
[latest-26177]2026-06-28T18:39:56.889Z <app:null> Resolved timezone=America/Panama, environment TZ=(undefined); offset minutes from UTC=-300
[latest-26177]2026-06-28T18:39:56.892Z <default:null> Module i18n v26144
[latest-26177]2026-06-28T18:39:56.892Z <app:null> Configured locale (undefined); selected locale(s) en_US.UTF-8
[latest-26177]2026-06-28T18:39:56.903Z <app:null> Loaded locale en-US for en-US
[latest-26177]2026-06-28T18:39:56.903Z <app:null> Local date/time using configured timezone and locale formatting is "6/28/2026, 1:39:56 PM"
[latest-26177]2026-06-28T18:39:56.907Z <Structure:null> Module Structure v26094
[latest-26177]2026-06-28T18:39:56.908Z <Capabilities:null> Module Capabilities v24312
[latest-26177]2026-06-28T18:39:56.923Z <Plugin:null> Module Plugin v25141
[latest-26177]2026-06-28T18:39:56.950Z <Timer:null> Module Timer v25330
[latest-26177]2026-06-28T18:39:56.951Z <TimerBroker:null> Module TimerBroker v26164
[latest-26177]2026-06-28T18:39:56.953Z <Entity:null> Module Entity v26167
[latest-26177]2026-06-28T18:39:56.957Z <Controller:null> Module Controller v26150
[latest-26177]2026-06-28T18:39:56.958Z <AlertManager:null> Module AlertManager v26135
[latest-26177]2026-06-28T18:39:56.971Z <default:null> Module Ruleset v25283
[latest-26177]2026-06-28T18:39:56.972Z <default:null> Module Rulesets v25141
[latest-26177]2026-06-28T18:39:56.978Z <GlobalExpression:null> Module GlobalExpression v25341
[latest-26177]2026-06-28T18:39:56.990Z <Predicate:null> Module Predicate v26138
[latest-26177]2026-06-28T18:39:56.994Z <Rule:null> Module Rule v26144
[latest-26177]2026-06-28T18:39:56.997Z <GlobalReaction:null> Module GlobalReaction v25292
[latest-26177]2026-06-28T18:39:56.998Z <Engine:null> Module Engine v26149
[latest-26177]2026-06-28T18:39:57.003Z <httpapi:null> Module httpapi v26175
[latest-26177]2026-06-28T18:39:57.015Z <wsapi:null> Module wsapi v26175
[latest-26177]2026-06-28T18:39:57.035Z <HassController:null> Module HassController v26173
[latest-26177]2026-06-28T18:39:57.313Z <TaskQueue:null> Module TaskQueue 24138
[latest-26177]2026-06-28T18:39:57.313Z <HubitatController:null> Module HubitatController v26108
[latest-26177]2026-06-28T18:39:57.395Z <DynamicGroupController:null> Module DynamicGroupController v26150
[latest-26177]2026-06-28T18:39:57.416Z <OWMWeatherController:null> Module OWMWeatherController v25268
[latest-26177]2026-06-28T18:39:57.422Z <NUTController:null> Module NUTController v25288
[latest-26177]2026-06-28T18:39:57.429Z <SystemController:null> Module SystemController v25330
[latest-26177]2026-06-28T18:39:57.491Z <HassController:ERR> HassController#hass implementation data has no/empty mapping section; supplying default mapping
[latest-26177]2026-06-28T18:39:57.681Z <Engine:ERR> Engine#1: error evaluating expression HistShow: [ReferenceError] Invalid scope in reference to member daily of (object)null [-]
[latest-26177]2026-06-28T18:39:57.681Z <Engine:ERR> Engine#1: expression: join((each i in 5..0 :
format( "{0} {1} {2:4.1f}mm<br>",
substr(HistPrecipitation.daily.time[i],8,2),
if HistPrecipitation.daily.precipitation_sum[i] <= 2
then "💦" else "🌧️" endif,
HistPrecipitation.daily.precipitation_sum[i])), " ")
[latest-26177]2026-06-28T18:39:57.681Z <Engine:CRIT> ReferenceError: Invalid scope in reference to member daily of (object)null [-]
ReferenceError: Invalid scope in reference to member daily of (object)null
at _run (/home/wilson/reactor/common/lexp.js:1611:31)
at _run (/home/wilson/reactor/common/lexp.js:1605:33)
at _run (/home/wilson/reactor/common/lexp.js:1605:33)
at /home/wilson/reactor/common/lexp.js:1702:33
at Array.forEach (<anonymous>)
at _run (/home/wilson/reactor/common/lexp.js:1701:28)
at /home/wilson/reactor/common/lexp.js:1702:33
at Array.forEach (<anonymous>)
at _run (/home/wilson/reactor/common/lexp.js:1701:28)
at _run (/home/wilson/reactor/common/lexp.js:1725:41)
[latest-26177]2026-06-28T18:39:57.685Z <Engine:ERR> Engine#1: error evaluating expression HistLastRain: [ReferenceError] Invalid scope in reference to member daily of (object)null [-]
[latest-26177]2026-06-28T18:39:57.685Z <Engine:ERR> Engine#1: expression: if HistPrecipitation.daily.precipitation_sum[5] > 2
then format( "{0} {1} {2:4.1f}mm", substr(HistPrecipitation.daily.time[5],8,2),
"🌧️", HistPrecipitation.daily.precipitation_sum[5])
else
HistLastRain
endif
[latest-26177]2026-06-28T18:39:57.685Z <Engine:CRIT> ReferenceError: Invalid scope in reference to member daily of (object)null [-]
ReferenceError: Invalid scope in reference to member daily of (object)null
at _run (/home/wilson/reactor/common/lexp.js:1611:31)
at _run (/home/wilson/reactor/common/lexp.js:1605:33)
at _run (/home/wilson/reactor/common/lexp.js:1605:33)
at _run (/home/wilson/reactor/common/lexp.js:1436:34)
at _run (/home/wilson/reactor/common/lexp.js:1623:26)
at /home/wilson/reactor/common/lexp.js:1426:29
at Array.forEach (<anonymous>)
at _run (/home/wilson/reactor/common/lexp.js:1425:28)
at Object.run (/home/wilson/reactor/common/lexp.js:1855:24)
at Engine._eval_expr (/home/wilson/reactor/server/lib/Engine.js:1242:165)
[latest-26177]2026-06-28T18:39:57.736Z <Rule:ERR> Panel Bike Adri Update (rule-mhxipiux in SharpTools): error evaluating expression KmBici: [ReferenceError] Invalid scope in reference to member [object Object] of (object)null [-]
[latest-26177]2026-06-28T18:39:57.736Z <Rule:ERR> Full expression: case
when XPosition >= 0: BiciAdri[(1+XPosition)]
else int( getEntity( "hass>sensor_strava_adriane_marcolin_stats_all_ride_distance").attributes.string_sensor.value )
end
[latest-26177]2026-06-28T18:39:57.737Z <Rule:CRIT> ReferenceError: Invalid scope in reference to member [object Object] of (object)null [-]
ReferenceError: Invalid scope in reference to member [object Object] of (object)null
at _run (/home/wilson/reactor/common/lexp.js:1611:31)
at _run (/home/wilson/reactor/common/lexp.js:1784:35)
at /home/wilson/reactor/common/lexp.js:1426:29
at Array.forEach (<anonymous>)
at _run (/home/wilson/reactor/common/lexp.js:1425:28)
at Object.run (/home/wilson/reactor/common/lexp.js:1855:24)
at Rule._eval_rule_expr (/home/wilson/reactor/server/lib/Rule.js:1223:182)
at Rule.evaluateExpressions (/home/wilson/reactor/server/lib/Rule.js:1424:131)
at Rule._evaluate (/home/wilson/reactor/server/lib/Rule.js:1498:259)
at /home/wilson/reactor/server/lib/Rule.js:1445:44
[latest-26177]2026-06-28T18:39:57.745Z <Rule:ERR> Panel Bike Wilson Update (rule-mhulh79h in SharpTools): error evaluating expression KmBici: [ReferenceError] Invalid scope in reference to member [object Object] of (object)null [-]
[latest-26177]2026-06-28T18:39:57.745Z <Rule:ERR> Full expression: case
when XPosition >= 0: BiciWilson[(1+XPosition)]
else int( getEntity( "hass>sensor_strava_wilson_marcolin_stats_all_ride_distance").attributes.string_sensor.value )
end
[latest-26177]2026-06-28T18:39:57.745Z <Rule:CRIT> ReferenceError: Invalid scope in reference to member [object Object] of (object)null [-]
ReferenceError: Invalid scope in reference to member [object Object] of (object)null
at _run (/home/wilson/reactor/common/lexp.js:1611:31)
at _run (/home/wilson/reactor/common/lexp.js:1784:35)
at /home/wilson/reactor/common/lexp.js:1426:29
at Array.forEach (<anonymous>)
at _run (/home/wilson/reactor/common/lexp.js:1425:28)
at Object.run (/home/wilson/reactor/common/lexp.js:1855:24)
at Rule._eval_rule_expr (/home/wilson/reactor/server/lib/Rule.js:1223:182)
at Rule.evaluateExpressions (/home/wilson/reactor/server/lib/Rule.js:1424:131)
at Rule._evaluate (/home/wilson/reactor/server/lib/Rule.js:1498:259)
at /home/wilson/reactor/server/lib/Rule.js:1445:44
[latest-26177]2026-06-28T18:39:57.769Z <Rule:ERR> Bike Adri Maintenance (rule-mhldpqi1 in Automation): error evaluating expression BiciShow: [ReferenceError] Invalid scope in reference to member [object Object] of (object)null [-]
[latest-26177]2026-06-28T18:39:57.770Z <Rule:ERR> Full expression: case
when XPosition >= 0: BiciAdri[(0+XPosition)]
else "Total acumulado"
end
[latest-26177]2026-06-28T18:39:57.770Z <Rule:CRIT> ReferenceError: Invalid scope in reference to member [object Object] of (object)null [-]
ReferenceError: Invalid scope in reference to member [object Object] of (object)null
at _run (/home/wilson/reactor/common/lexp.js:1611:31)
at _run (/home/wilson/reactor/common/lexp.js:1784:35)
at /home/wilson/reactor/common/lexp.js:1426:29
at Array.forEach (<anonymous>)
at _run (/home/wilson/reactor/common/lexp.js:1425:28)
at Object.run (/home/wilson/reactor/common/lexp.js:1855:24)
at Rule._eval_rule_expr (/home/wilson/reactor/server/lib/Rule.js:1223:182)
at Rule.evaluateExpressions (/home/wilson/reactor/server/lib/Rule.js:1424:131)
at Rule._evaluate (/home/wilson/reactor/server/lib/Rule.js:1498:259)
at /home/wilson/reactor/server/lib/Rule.js:1445:44
[latest-26177]2026-06-28T18:39:57.770Z <Rule:ERR> Bike Adri Maintenance (rule-mhldpqi1 in Automation): error evaluating expression KmBici: [ReferenceError] Invalid scope in reference to member [object Object] of (object)null [-]
[latest-26177]2026-06-28T18:39:57.770Z <Rule:ERR> Full expression: case
when XPosition >= 0: BiciAdri[(1+XPosition)]
else int( getEntity( "hass>sensor_strava_adriane_marcolin_stats_all_ride_distance").attributes.string_sensor.value )
end
[latest-26177]2026-06-28T18:39:57.771Z <Rule:CRIT> ReferenceError: Invalid scope in reference to member [object Object] of (object)null [-]
ReferenceError: Invalid scope in reference to member [object Object] of (object)null
at _run (/home/wilson/reactor/common/lexp.js:1611:31)
at _run (/home/wilson/reactor/common/lexp.js:1784:35)
at /home/wilson/reactor/common/lexp.js:1426:29
at Array.forEach (<anonymous>)
at _run (/home/wilson/reactor/common/lexp.js:1425:28)
at Object.run (/home/wilson/reactor/common/lexp.js:1855:24)
at Rule._eval_rule_expr (/home/wilson/reactor/server/lib/Rule.js:1223:182)
at Rule.evaluateExpressions (/home/wilson/reactor/server/lib/Rule.js:1424:131)
at Rule._evaluate (/home/wilson/reactor/server/lib/Rule.js:1498:259)
at /home/wilson/reactor/server/lib/Rule.js:1445:44
[latest-26177]2026-06-28T18:39:57.774Z <Rule:ERR> Bike Wilson Maintenance (rule-mhp74b2v in Automation): error evaluating expression BiciShow: [ReferenceError] Invalid scope in reference to member [object Object] of (object)null [-]
[latest-26177]2026-06-28T18:39:57.774Z <Rule:ERR> Full expression: case
when XPosition >= 0: BiciWilson[(0+XPosition)]
else "Total acumulado"
end
[latest-26177]2026-06-28T18:39:57.774Z <Rule:CRIT> ReferenceError: Invalid scope in reference to member [object Object] of (object)null [-]
ReferenceError: Invalid scope in reference to member [object Object] of (object)null
at _run (/home/wilson/reactor/common/lexp.js:1611:31)
at _run (/home/wilson/reactor/common/lexp.js:1784:35)
at /home/wilson/reactor/common/lexp.js:1426:29
at Array.forEach (<anonymous>)
at _run (/home/wilson/reactor/common/lexp.js:1425:28)
at Object.run (/home/wilson/reactor/common/lexp.js:1855:24)
at Rule._eval_rule_expr (/home/wilson/reactor/server/lib/Rule.js:1223:182)
at Rule.evaluateExpressions (/home/wilson/reactor/server/lib/Rule.js:1424:131)
at Rule._evaluate (/home/wilson/reactor/server/lib/Rule.js:1498:259)
at /home/wilson/reactor/server/lib/Rule.js:1445:44
[latest-26177]2026-06-28T18:39:57.775Z <Rule:ERR> Bike Wilson Maintenance (rule-mhp74b2v in Automation): error evaluating expression KmBici: [ReferenceError] Invalid scope in reference to member [object Object] of (object)null [-]
[latest-26177]2026-06-28T18:39:57.775Z <Rule:ERR> Full expression: case
when XPosition >= 0: BiciWilson[(1+XPosition)]
else int( getEntity( "hass>sensor_strava_wilson_marcolin_stats_all_ride_distance").attributes.string_sensor.value )
end
[latest-26177]2026-06-28T18:39:57.775Z <Rule:CRIT> ReferenceError: Invalid scope in reference to member [object Object] of (object)null [-]
ReferenceError: Invalid scope in reference to member [object Object] of (object)null
at _run (/home/wilson/reactor/common/lexp.js:1611:31)
at _run (/home/wilson/reactor/common/lexp.js:1784:35)
at /home/wilson/reactor/common/lexp.js:1426:29
at Array.forEach (<anonymous>)
at _run (/home/wilson/reactor/common/lexp.js:1425:28)
at Object.run (/home/wilson/reactor/common/lexp.js:1855:24)
at Rule._eval_rule_expr (/home/wilson/reactor/server/lib/Rule.js:1223:182)
at Rule.evaluateExpressions (/home/wilson/reactor/server/lib/Rule.js:1424:131)
at Rule._evaluate (/home/wilson/reactor/server/lib/Rule.js:1498:259)
at /home/wilson/reactor/server/lib/Rule.js:1445:44
[latest-26177]2026-06-28T18:39:58.260Z <HubitatController:WARN> HubitatController#hubitat native capability URL no definition data; skipped
[latest-26177]2026-06-28T18:39:58.521Z <app:ERR> Trapped unhandled Promise rejection: [FetchError] Invalid response body while trying to fetch http://192.168.1.15/apps/api/8/postURL?access_token=e6d0afa6-caad-4f01-a0f3-e27bb8098221: Premature close [-]
[latest-26177]2026-06-28T18:39:58.521Z <app:CRIT> FetchError: Invalid response body while trying to fetch http://192.168.1.15/apps/api/8/postURL?access_token=e6d0afa6-caad-4f01-a0f3-e27bb8098221: Premature close [-]
FetchError: Invalid response body while trying to fetch http://192.168.1.15/apps/api/8/postURL?access_token=e6d0afa6-caad-4f01-a0f3-e27bb8098221: Premature close
at PassThrough.<anonymous> (/home/wilson/reactor/node_modules/node-fetch/lib/index.js:217:52)
at PassThrough.emit (node:events:509:28)
at PassThrough.emit (node:domain:489:12)
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
[latest-26177]2026-06-28T18:39:58.522Z <app:ERR> Please refer to the console log for trace
[latest-26177]2026-06-28T18:39:58.524Z <HassController:ERR> HassController#hass failed to complete startup: [Error] Hub reports it is starting but not yet ready [-]
[latest-26177]2026-06-28T18:39:58.524Z <HassController:CRIT> Error: Hub reports it is starting but not yet ready [-]
Error: Hub reports it is starting but not yet ready
at /home/wilson/reactor/server/lib/HassController.js:1561:61
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
[latest-26177]2026-06-28T18:39:58.788Z <HubitatController:ERR> HubitatController#hubitat error retrieving current mode: [FetchError] Invalid response body while trying to fetch http://192.168.1.15/apps/api/8/modes?access_token=e6d0afa6-caad-4f01-a0f3-e27bb8098221: Premature>
[latest-26177]2026-06-28T18:39:59.551Z <HubitatController:ERR> HubitatController#hubitat enqueued action task2amerd76 (perform.hubitat>163.power_switch.off) failed: [FetchError] Invalid response body while trying to fetch http://192.168.1.15/apps/api/8/devices/163/off?acces>
[latest-26177]2026-06-28T18:40:00.098Z <HubitatController:ERR> HubitatController#hubitat enqueued action task2amerd79 (perform.hubitat>21.power_switch.off) failed: [FetchError] Invalid response body while trying to fetch http://192.168.1.15/apps/api/8/devices/21/off?access_>
[latest-26177]2026-06-28T18:40:00.635Z <HubitatController:ERR> HubitatController#hubitat enqueued action task2amerd7a (perform.hubitat>138.power_switch.off) failed: [FetchError] Invalid response body while trying to fetch http://192.168.1.15/apps/api/8/devices/138/off?acces>
[latest-26177]2026-06-28T18:40:01.206Z <HubitatController:ERR> HubitatController#hubitat enqueued action task2amerd7b (perform.hubitat>74.power_switch.off) failed: [FetchError] Invalid response body while trying to fetch http://192.168.1.15/apps/api/8/devices/74/off?access_>
[latest-26177]2026-06-28T18:40:03.855Z <HassController:ERR> HassController#hass failed to complete startup: [Error] Hub reports it is starting but not yet ready [-]
[latest-26177]2026-06-28T18:40:03.855Z <HassController:CRIT> Error: Hub reports it is starting but not yet ready [-]
Error: Hub reports it is starting but not yet ready
at /home/wilson/reactor/server/lib/HassController.js:1561:61
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
[latest-26177]2026-06-28T18:40:08.922Z <HassController:ERR> HassController#hass failed to complete startup: [Error] Hub reports it is starting but not yet ready [-]
[latest-26177]2026-06-28T18:40:08.922Z <HassController:CRIT> Error: Hub reports it is starting but not yet ready [-]
Error: Hub reports it is starting but not yet ready
at /home/wilson/reactor/server/lib/HassController.js:1561:61
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
[latest-26177]2026-06-28T18:40:14.135Z <HubitatController:ERR> HubitatController#hubitat enqueued action task2amerox3 (perform.hubitat>163.power_switch.off) failed: [FetchError] Invalid response body while trying to fetch http://192.168.1.15/apps/api/8/devices/163/off?acces>
[latest-26177]2026-06-28T18:40:16.757Z <HassController:CRIT> HassController#hass refreshing 0 entities: Array(0) []
[latest-26177]2026-06-28T18:40:32.807Z <HubitatController:ERR> HubitatController#hubitat enqueued action task2ames3cq (perform.hubitat>28.power_switch.off) failed: [FetchError] Invalid response body while trying to fetch http://192.168.1.15/apps/api/8/devices/28/off?access_>
Sorry to bother you—maybe these are just issues with my installation. I actually just deleted everything and reinstalled the latest version. I only left the “config” and “storage” directories; I removed everything else. From the ‘storage’ directory, I deleted the “state” file. I know that was a drastic move, but I'm trying to figure out what happened to my installation.