boneIO 1.6.0.dev33__py3-none-any.whl → 1.6.0.dev34__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- boneio/components/sensor/virtual_energy.py +31 -19
- boneio/core/config/provenance.py +7 -4
- boneio/core/containers.py +2 -2
- boneio/core/events/bus.py +8 -2
- boneio/core/manager/manager.py +11 -6
- boneio/core/messaging/basic.py +6 -0
- boneio/core/messaging/composite.py +4 -0
- boneio/core/messaging/mqtt.py +6 -0
- boneio/core/system_ops.py +10 -0
- boneio/migrations/assets/MANIFEST.sha256 +2 -2
- boneio/migrations/assets/helpers/boneio-containers +3 -1
- boneio/migrations/assets/helpers/boneio-system +87 -0
- boneio/migrations/plans/1.6.17.json +1 -1
- boneio/migrations/plans/1.6.17.sig +1 -1
- boneio/migrations/plans/1.6.18.json +1 -1
- boneio/migrations/plans/1.6.18.sig +1 -1
- boneio/migrations/plans/1.6.21.json +1 -1
- boneio/migrations/plans/1.6.21.sig +0 -0
- boneio/migrations/plans/1.6.22.json +1 -1
- boneio/migrations/plans/1.6.22.sig +1 -3
- boneio/migrations/plans/1.6.26.json +1 -1
- boneio/migrations/plans/1.6.26.sig +1 -1
- boneio/migrations/plans/1.6.27.json +1 -1
- boneio/migrations/plans/1.6.27.sig +1 -1
- boneio/migrations/plans/1.6.29.json +1 -1
- boneio/migrations/plans/1.6.29.sig +1 -1
- boneio/migrations/plans/1.6.30.json +1 -1
- boneio/migrations/plans/1.6.30.sig +1 -1
- boneio/migrations/plans/1.6.31.json +1 -1
- boneio/migrations/plans/1.6.31.sig +0 -0
- boneio/migrations/plans/1.6.32.json +1 -1
- boneio/migrations/plans/1.6.32.sig +1 -1
- boneio/migrations/plans/1.6.33.json +1 -1
- boneio/migrations/plans/1.6.33.sig +1 -1
- boneio/migrations/plans/1.6.39.json +1 -0
- boneio/migrations/plans/1.6.39.sig +2 -0
- boneio/migrations/plans/1.6.40.json +1 -0
- boneio/migrations/plans/1.6.40.sig +1 -0
- boneio/migrations/plans/1.6.5.json +1 -1
- boneio/migrations/plans/1.6.5.sig +1 -2
- boneio/migrations/plans/1.6.8.json +1 -1
- boneio/migrations/plans/1.6.8.sig +1 -1
- boneio/migrations/plans/1.6.9.json +1 -1
- boneio/migrations/plans/1.6.9.sig +1 -1
- boneio/migrations/plans/manifest.json +1 -1
- boneio/migrations/plans/manifest.sig +0 -0
- boneio/migrations/versions/v1_6_39_containers_pull_timeout.py +41 -0
- boneio/migrations/versions/v1_6_40_disk_usage.py +43 -0
- boneio/runner.py +1 -1
- boneio/version.py +1 -1
- boneio/webui/app.py +1 -0
- boneio/webui/frontend-dist/assets/{AccountsView-Cbqd4Ao_.js → AccountsView-CSXSpOS4.js} +1 -1
- boneio/webui/frontend-dist/assets/AccountsView-CSXSpOS4.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{AppInitContext-DWvK3qS_.js → AppInitContext-kJFzie2b.js} +1 -1
- boneio/webui/frontend-dist/assets/AppInitContext-kJFzie2b.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{BackupSection-8QSuOR0c.js → BackupSection-Ztj9IqaM.js} +1 -1
- boneio/webui/frontend-dist/assets/BackupSection-Ztj9IqaM.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{BindingMatrix-CfzTlbKI.js → BindingMatrix-vz1HRgOK.js} +1 -1
- boneio/webui/frontend-dist/assets/BindingMatrix-vz1HRgOK.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{DeviceControlSection-BDnXyBJT.js → DeviceControlSection-ClD01EqT.js} +1 -1
- boneio/webui/frontend-dist/assets/DeviceControlSection-ClD01EqT.js.gz +0 -0
- boneio/webui/frontend-dist/assets/DiagnosticsView-DsaN3_X1.js +5 -0
- boneio/webui/frontend-dist/assets/DiagnosticsView-DsaN3_X1.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{EntityGrid-DaGv-7ct.js → EntityGrid-DkCZl4Ex.js} +1 -1
- boneio/webui/frontend-dist/assets/EntityGrid-DkCZl4Ex.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{FactoryResetSection-C-k28afU.js → FactoryResetSection-BoxwCSfi.js} +1 -1
- boneio/webui/frontend-dist/assets/FactoryResetSection-BoxwCSfi.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{FormInputToggle-BgXGSDAE.js → FormInputToggle-_QKboN_m.js} +2 -2
- boneio/webui/frontend-dist/assets/FormInputToggle-_QKboN_m.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{HaDashboardWizard-B4KWLmIy.js → HaDashboardWizard-D_WBE8Xp.js} +1 -1
- boneio/webui/frontend-dist/assets/HaDashboardWizard-D_WBE8Xp.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{HostnameSection-IfbaLobN.js → HostnameSection-CDv-K27C.js} +1 -1
- boneio/webui/frontend-dist/assets/HostnameSection-CDv-K27C.js.gz +0 -0
- boneio/webui/frontend-dist/assets/InputsView-DanA2G7X.js +1 -0
- boneio/webui/frontend-dist/assets/InputsView-DanA2G7X.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{LoadingState-Bp0pGOdE.js → LoadingState-Imhtv6yU.js} +1 -1
- boneio/webui/frontend-dist/assets/{LocationSection-CEDOjibw.js → LocationSection-D2CLhYVj.js} +2 -2
- boneio/webui/frontend-dist/assets/LocationSection-D2CLhYVj.js.gz +0 -0
- boneio/webui/frontend-dist/assets/LoggerForm-CK3xQ9SL.js +1 -0
- boneio/webui/frontend-dist/assets/LoggerForm-CK3xQ9SL.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{LongPressWrapper-B9Hl3ltV.js → LongPressWrapper-BsarZuoK.js} +1 -1
- boneio/webui/frontend-dist/assets/LongPressWrapper-BsarZuoK.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{MigrationsSection-D3xuvZyO.js → MigrationsSection-CbvNdwv4.js} +1 -1
- boneio/webui/frontend-dist/assets/MigrationsSection-CbvNdwv4.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{ModbusView-Bg5HDFqc.js → ModbusView-DlznAyaI.js} +1 -1
- boneio/webui/frontend-dist/assets/ModbusView-DlznAyaI.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{MqttPasswordsSection-CMVKRHVp.js → MqttPasswordsSection-Bo3XZhi4.js} +1 -1
- boneio/webui/frontend-dist/assets/MqttPasswordsSection-Bo3XZhi4.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{NodeRedManagement-8LQGoZFd.js → NodeRedManagement-IvXYKjFx.js} +1 -1
- boneio/webui/frontend-dist/assets/NodeRedManagement-IvXYKjFx.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{NodeRedView-CP86NnC4.js → NodeRedView-CvHaeVuP.js} +1 -1
- boneio/webui/frontend-dist/assets/NodeRedView-CvHaeVuP.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{NumericInput-CrVNlFps.js → NumericInput-Bw0XKSHb.js} +1 -1
- boneio/webui/frontend-dist/assets/NumericInput-Bw0XKSHb.js.gz +0 -0
- boneio/webui/frontend-dist/assets/OutputsView-BILwW2hW.js +1 -0
- boneio/webui/frontend-dist/assets/OutputsView-BILwW2hW.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{SecurityView-C8VMMZ2Q.js → SecurityView-BwXDK_cg.js} +1 -1
- boneio/webui/frontend-dist/assets/SecurityView-BwXDK_cg.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{SensorView-DMh2GK_I.js → SensorView-pEFTQ0EY.js} +1 -1
- boneio/webui/frontend-dist/assets/SensorView-pEFTQ0EY.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{Sparkline-6iDv_8hd.js → Sparkline-CGzZ8JIa.js} +2 -2
- boneio/webui/frontend-dist/assets/Sparkline-CGzZ8JIa.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{SystemState-DUOSa8P5.js → SystemState-DfBI-y6w.js} +2 -2
- boneio/webui/frontend-dist/assets/SystemState-DfBI-y6w.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{TemplatesView-DVP3Ifd4.js → TemplatesView-1O-xFYJW.js} +1 -1
- boneio/webui/frontend-dist/assets/TemplatesView-1O-xFYJW.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{TilePicker-DZrA7qwM.js → TilePicker-DK7aB1YH.js} +1 -1
- boneio/webui/frontend-dist/assets/TilePicker-DK7aB1YH.js.gz +0 -0
- boneio/webui/frontend-dist/assets/TimezoneSection-DJ8AR56R.js +1 -0
- boneio/webui/frontend-dist/assets/TimezoneSection-DJ8AR56R.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{UISettings-CQ64K21V.js → UISettings-ed4yBFdO.js} +6 -6
- boneio/webui/frontend-dist/assets/UISettings-ed4yBFdO.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{UpdateSafetyNotice-CAKxJzbp.js → UpdateSafetyNotice-I0YWMsBB.js} +1 -1
- boneio/webui/frontend-dist/assets/UpdateSafetyNotice-I0YWMsBB.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{ViewToggle-CVWoIKqI.js → ViewToggle-sL23XpBa.js} +1 -1
- boneio/webui/frontend-dist/assets/{aiConfig-BB8qvNZ5.js → aiConfig-Cg4qXxu9.js} +1 -1
- boneio/webui/frontend-dist/assets/aiConfig-Cg4qXxu9.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{aiWizardPrompt-HWioCYHg.js → aiWizardPrompt-CQbWx1cn.js} +1 -1
- boneio/webui/frontend-dist/assets/aiWizardPrompt-CQbWx1cn.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{dialog-DMaCttcv.js → dialog-BxLQlili.js} +1 -1
- boneio/webui/frontend-dist/assets/dialog-BxLQlili.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{fa-ChDOCx3T.js → fa-Dri4B5-B.js} +1 -1
- boneio/webui/frontend-dist/assets/fa-Dri4B5-B.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{gi-DiFRP1nv.js → gi-DtGhRxvF.js} +1 -1
- boneio/webui/frontend-dist/assets/{groupByArea-DIIjg3E_.js → groupByArea-DG7QcJ3T.js} +1 -1
- boneio/webui/frontend-dist/assets/groupByArea-DG7QcJ3T.js.gz +0 -0
- boneio/webui/frontend-dist/assets/index-CZXkUu7y.css +2 -0
- boneio/webui/frontend-dist/assets/{index-ybynnlsQ.css.gz → index-CZXkUu7y.css.gz} +0 -0
- boneio/webui/frontend-dist/assets/index-M58OAI5C.js +42 -0
- boneio/webui/frontend-dist/assets/index-M58OAI5C.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{monaco-CoUZsnkn.js → monaco-C7FHdIAl.js} +1 -1
- boneio/webui/frontend-dist/assets/monaco-C7FHdIAl.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{monaco-BksocEXi.js → monaco-XKptoelx.js} +3 -3
- boneio/webui/frontend-dist/assets/monaco-XKptoelx.js.gz +0 -0
- boneio/webui/frontend-dist/assets/{select-iQAUlBVk.js → select-BO6jtq8Y.js} +1 -1
- boneio/webui/frontend-dist/assets/select-BO6jtq8Y.js.gz +0 -0
- boneio/webui/frontend-dist/index.html +5 -5
- boneio/webui/frontend-dist/sw.js +1 -1
- boneio/webui/middleware/policy.py +2 -0
- boneio/webui/routes/diagnostics.py +55 -0
- boneio/webui/routes/migrations.py +3 -1
- boneio/webui/routes/nodered.py +45 -5
- boneio/webui/routes/onboarding.py +126 -1
- boneio/webui/routes/system.py +3 -1
- {boneio-1.6.0.dev33.dist-info → boneio-1.6.0.dev34.dist-info}/METADATA +1 -1
- {boneio-1.6.0.dev33.dist-info → boneio-1.6.0.dev34.dist-info}/RECORD +150 -144
- boneio/webui/frontend-dist/assets/AccountsView-Cbqd4Ao_.js.gz +0 -0
- boneio/webui/frontend-dist/assets/AppInitContext-DWvK3qS_.js.gz +0 -0
- boneio/webui/frontend-dist/assets/BackupSection-8QSuOR0c.js.gz +0 -0
- boneio/webui/frontend-dist/assets/BindingMatrix-CfzTlbKI.js.gz +0 -0
- boneio/webui/frontend-dist/assets/DeviceControlSection-BDnXyBJT.js.gz +0 -0
- boneio/webui/frontend-dist/assets/DiagnosticsView-BFbE2gzt.js +0 -5
- boneio/webui/frontend-dist/assets/DiagnosticsView-BFbE2gzt.js.gz +0 -0
- boneio/webui/frontend-dist/assets/EntityGrid-DaGv-7ct.js.gz +0 -0
- boneio/webui/frontend-dist/assets/FactoryResetSection-C-k28afU.js.gz +0 -0
- boneio/webui/frontend-dist/assets/FormInputToggle-BgXGSDAE.js.gz +0 -0
- boneio/webui/frontend-dist/assets/HaDashboardWizard-B4KWLmIy.js.gz +0 -0
- boneio/webui/frontend-dist/assets/HostnameSection-IfbaLobN.js.gz +0 -0
- boneio/webui/frontend-dist/assets/InputsView-LHCSi3jQ.js +0 -1
- boneio/webui/frontend-dist/assets/InputsView-LHCSi3jQ.js.gz +0 -0
- boneio/webui/frontend-dist/assets/LocationSection-CEDOjibw.js.gz +0 -0
- boneio/webui/frontend-dist/assets/LoggerForm-C2G_nFBk.js +0 -1
- boneio/webui/frontend-dist/assets/LoggerForm-C2G_nFBk.js.gz +0 -0
- boneio/webui/frontend-dist/assets/LongPressWrapper-B9Hl3ltV.js.gz +0 -0
- boneio/webui/frontend-dist/assets/MigrationsSection-D3xuvZyO.js.gz +0 -0
- boneio/webui/frontend-dist/assets/ModbusView-Bg5HDFqc.js.gz +0 -0
- boneio/webui/frontend-dist/assets/MqttPasswordsSection-CMVKRHVp.js.gz +0 -0
- boneio/webui/frontend-dist/assets/NodeRedManagement-8LQGoZFd.js.gz +0 -0
- boneio/webui/frontend-dist/assets/NodeRedView-CP86NnC4.js.gz +0 -0
- boneio/webui/frontend-dist/assets/NumericInput-CrVNlFps.js.gz +0 -0
- boneio/webui/frontend-dist/assets/OutputsView-CkgUuZDI.js +0 -1
- boneio/webui/frontend-dist/assets/OutputsView-CkgUuZDI.js.gz +0 -0
- boneio/webui/frontend-dist/assets/SecurityView-C8VMMZ2Q.js.gz +0 -0
- boneio/webui/frontend-dist/assets/SensorView-DMh2GK_I.js.gz +0 -0
- boneio/webui/frontend-dist/assets/Sparkline-6iDv_8hd.js.gz +0 -0
- boneio/webui/frontend-dist/assets/SystemState-DUOSa8P5.js.gz +0 -0
- boneio/webui/frontend-dist/assets/TemplatesView-DVP3Ifd4.js.gz +0 -0
- boneio/webui/frontend-dist/assets/TilePicker-DZrA7qwM.js.gz +0 -0
- boneio/webui/frontend-dist/assets/TimezoneSection-CA36pxfJ.js +0 -1
- boneio/webui/frontend-dist/assets/TimezoneSection-CA36pxfJ.js.gz +0 -0
- boneio/webui/frontend-dist/assets/UISettings-CQ64K21V.js.gz +0 -0
- boneio/webui/frontend-dist/assets/UpdateSafetyNotice-CAKxJzbp.js.gz +0 -0
- boneio/webui/frontend-dist/assets/aiConfig-BB8qvNZ5.js.gz +0 -0
- boneio/webui/frontend-dist/assets/aiWizardPrompt-HWioCYHg.js.gz +0 -0
- boneio/webui/frontend-dist/assets/dialog-DMaCttcv.js.gz +0 -0
- boneio/webui/frontend-dist/assets/fa-ChDOCx3T.js.gz +0 -0
- boneio/webui/frontend-dist/assets/groupByArea-DIIjg3E_.js.gz +0 -0
- boneio/webui/frontend-dist/assets/index-Co3agMvu.js +0 -42
- boneio/webui/frontend-dist/assets/index-Co3agMvu.js.gz +0 -0
- boneio/webui/frontend-dist/assets/index-ybynnlsQ.css +0 -2
- boneio/webui/frontend-dist/assets/monaco-BksocEXi.js.gz +0 -0
- boneio/webui/frontend-dist/assets/monaco-CoUZsnkn.js.gz +0 -0
- boneio/webui/frontend-dist/assets/select-iQAUlBVk.js.gz +0 -0
- {boneio-1.6.0.dev33.dist-info → boneio-1.6.0.dev34.dist-info}/WHEEL +0 -0
- {boneio-1.6.0.dev33.dist-info → boneio-1.6.0.dev34.dist-info}/entry_points.txt +0 -0
- {boneio-1.6.0.dev33.dist-info → boneio-1.6.0.dev34.dist-info}/licenses/LICENSE +0 -0
- {boneio-1.6.0.dev33.dist-info → boneio-1.6.0.dev34.dist-info}/top_level.txt +0 -0
|
@@ -25,6 +25,10 @@ if TYPE_CHECKING:
|
|
|
25
25
|
|
|
26
26
|
_LOGGER = logging.getLogger(__name__)
|
|
27
27
|
|
|
28
|
+
# How long to wait, once the broker has the subscription, for a stored total.
|
|
29
|
+
# None arriving means the counter has never been published.
|
|
30
|
+
RESTORE_GRACE_SECONDS = 15.0
|
|
31
|
+
|
|
28
32
|
|
|
29
33
|
class VirtualEnergySensor:
|
|
30
34
|
"""Virtual energy/water sensor linked to an output.
|
|
@@ -72,6 +76,7 @@ class VirtualEnergySensor:
|
|
|
72
76
|
self._area = area
|
|
73
77
|
|
|
74
78
|
self._virtual_sensors_task = None
|
|
79
|
+
self._restore_task: asyncio.Task | None = None
|
|
75
80
|
|
|
76
81
|
# Counters
|
|
77
82
|
self._energy_consumed_Wh = 0.0
|
|
@@ -145,7 +150,8 @@ class VirtualEnergySensor:
|
|
|
145
150
|
|
|
146
151
|
def start_tracking(self):
|
|
147
152
|
"""Start tracking consumption (called when output turns ON)."""
|
|
148
|
-
self._last_on_timestamp
|
|
153
|
+
if self._last_on_timestamp is None: # ON while already on keeps the stretch
|
|
154
|
+
self._last_on_timestamp = time.time()
|
|
149
155
|
if self._virtual_sensors_task is not None and not self._virtual_sensors_task.done():
|
|
150
156
|
return # Already running
|
|
151
157
|
self._virtual_sensors_task = self._loop.create_task(self._tracking_loop())
|
|
@@ -169,20 +175,9 @@ class VirtualEnergySensor:
|
|
|
169
175
|
async def _tracking_loop(self):
|
|
170
176
|
"""Periodically update and send state every 30 seconds while output is ON."""
|
|
171
177
|
try:
|
|
172
|
-
#
|
|
173
|
-
#
|
|
174
|
-
|
|
175
|
-
try:
|
|
176
|
-
await asyncio.wait_for(self._restore_done.wait(), timeout=5.0)
|
|
177
|
-
except TimeoutError:
|
|
178
|
-
_LOGGER.warning(
|
|
179
|
-
"State restore timeout for %s, starting with energy=%.4f Wh", self._id, self._energy_consumed_Wh
|
|
180
|
-
)
|
|
181
|
-
self._restore_done.set()
|
|
182
|
-
|
|
183
|
-
# Reset on_timestamp after restore so we don't count
|
|
184
|
-
# the time elapsed during the restore wait.
|
|
185
|
-
self._last_on_timestamp = time.time()
|
|
178
|
+
# Publishing before the stored total is known would replace it
|
|
179
|
+
# with what was counted since boot.
|
|
180
|
+
await self._restore_done.wait()
|
|
186
181
|
|
|
187
182
|
while self._output.state == ON:
|
|
188
183
|
self._update_consumption()
|
|
@@ -194,7 +189,9 @@ class VirtualEnergySensor:
|
|
|
194
189
|
def _update_consumption(self):
|
|
195
190
|
"""Update consumption counters based on elapsed time."""
|
|
196
191
|
now = time.time()
|
|
197
|
-
|
|
192
|
+
# Not the output's state: by the time OFF is handled it is already
|
|
193
|
+
# off, and the stretch since the last update would be lost.
|
|
194
|
+
if self._last_on_timestamp is not None:
|
|
198
195
|
elapsed = now - self._last_on_timestamp
|
|
199
196
|
|
|
200
197
|
if self._sensor_type == "power" and self._power_usage is not None:
|
|
@@ -215,14 +212,17 @@ class VirtualEnergySensor:
|
|
|
215
212
|
"""
|
|
216
213
|
|
|
217
214
|
async def on_message(_topic, payload):
|
|
215
|
+
if self._restore_done.is_set():
|
|
216
|
+
return # Late, after giving up: the counter is already published.
|
|
218
217
|
try:
|
|
219
218
|
data = json.loads(payload)
|
|
220
219
|
if isinstance(data, dict):
|
|
220
|
+
# Added, not assigned: the output may have been on since boot.
|
|
221
221
|
if "energy" in data:
|
|
222
|
-
self._energy_consumed_Wh
|
|
222
|
+
self._energy_consumed_Wh += float(data["energy"])
|
|
223
223
|
_LOGGER.info("Restored energy state for %s: %.4f Wh", self._id, self._energy_consumed_Wh)
|
|
224
224
|
if "water" in data:
|
|
225
|
-
self._water_consumed_L
|
|
225
|
+
self._water_consumed_L += float(data["water"])
|
|
226
226
|
_LOGGER.info("Restored water state for %s: %.4f L", self._id, self._water_consumed_L)
|
|
227
227
|
except Exception as e:
|
|
228
228
|
_LOGGER.warning("Failed to restore state for %s: %s", self._id, e)
|
|
@@ -230,8 +230,20 @@ class VirtualEnergySensor:
|
|
|
230
230
|
self._restore_done.set()
|
|
231
231
|
await self._message_bus.unsubscribe_and_stop_listen(self._sensor_topic)
|
|
232
232
|
|
|
233
|
+
async def restore():
|
|
234
|
+
await self._message_bus.subscribe_and_listen(self._sensor_topic, on_message)
|
|
235
|
+
# The grace starts once the broker has the subscription, not at
|
|
236
|
+
# boot: connecting can take longer than any fixed timeout.
|
|
237
|
+
await self._message_bus.wait_until_subscribed()
|
|
238
|
+
try:
|
|
239
|
+
await asyncio.wait_for(self._restore_done.wait(), timeout=RESTORE_GRACE_SECONDS)
|
|
240
|
+
except TimeoutError:
|
|
241
|
+
_LOGGER.info("No stored state for %s, counting from boot", self._id)
|
|
242
|
+
self._restore_done.set()
|
|
243
|
+
await self._message_bus.unsubscribe_and_stop_listen(self._sensor_topic)
|
|
244
|
+
|
|
233
245
|
if self._message_bus is not None:
|
|
234
|
-
asyncio.create_task(
|
|
246
|
+
self._restore_task = asyncio.create_task(restore())
|
|
235
247
|
|
|
236
248
|
def get_current_power(self) -> float:
|
|
237
249
|
"""Get current power usage in W (0 if output is OFF)."""
|
boneio/core/config/provenance.py
CHANGED
|
@@ -75,9 +75,12 @@ def looks_factory_fresh(
|
|
|
75
75
|
return True
|
|
76
76
|
|
|
77
77
|
root = Path(template_dir) if template_dir is not None else FACTORY_TEMPLATE_DIR
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
# <variant>/ on older images, <revision>/<variant>/ since one image serves
|
|
79
|
+
# every board.
|
|
80
|
+
variants = sorted(
|
|
81
|
+
p.parent for p in [*root.glob("*/config.yaml"), *root.glob("*/*/config.yaml")]
|
|
82
|
+
)
|
|
83
|
+
if not variants:
|
|
81
84
|
# No templates to compare against: the honest answer is "cannot tell",
|
|
82
85
|
# and the safe reading of that is "assume it has been configured".
|
|
83
86
|
_LOGGER.debug("No factory templates under %s — assuming configured", root)
|
|
@@ -85,7 +88,7 @@ def looks_factory_fresh(
|
|
|
85
88
|
|
|
86
89
|
for variant in variants:
|
|
87
90
|
if current == _digest(variant / "config.yaml"):
|
|
88
|
-
_LOGGER.debug("Configuration matches the %s template", variant.
|
|
91
|
+
_LOGGER.debug("Configuration matches the %s template", variant.relative_to(root))
|
|
89
92
|
return True
|
|
90
93
|
|
|
91
94
|
return False
|
boneio/core/containers.py
CHANGED
|
@@ -349,8 +349,8 @@ def restart_nodered(timeout: int = 120) -> Result:
|
|
|
349
349
|
return run("restart-nodered", timeout=timeout)
|
|
350
350
|
|
|
351
351
|
|
|
352
|
-
def pull_nodered(timeout: int =
|
|
353
|
-
"""Pull the Node-RED image."""
|
|
352
|
+
def pull_nodered(timeout: int = 960) -> Result:
|
|
353
|
+
"""Pull the Node-RED image; outlasts the helper's own 900 s limit."""
|
|
354
354
|
return run("pull-nodered", timeout=timeout)
|
|
355
355
|
|
|
356
356
|
|
boneio/core/events/bus.py
CHANGED
|
@@ -372,8 +372,14 @@ class EventBus:
|
|
|
372
372
|
return listener_job
|
|
373
373
|
|
|
374
374
|
def remove_event_listener(self, event_type: str | None = None, entity_id: str | None = None, listener_id: str | None = None) -> None:
|
|
375
|
-
"""Remove event listener. Can remove by event_type, listener_id, or both.
|
|
376
|
-
|
|
375
|
+
"""Remove event listener. Can remove by event_type, listener_id, or both.
|
|
376
|
+
|
|
377
|
+
A ``listener_id`` the bus does not know removes nothing; it never
|
|
378
|
+
widens to every listener of ``event_type``.
|
|
379
|
+
"""
|
|
380
|
+
if listener_id:
|
|
381
|
+
if listener_id not in self._listener_id_index:
|
|
382
|
+
return
|
|
377
383
|
# Remove by listener_id
|
|
378
384
|
for evt_type, ent_id in self._listener_id_index[listener_id]:
|
|
379
385
|
if event_type and evt_type != event_type:
|
boneio/core/manager/manager.py
CHANGED
|
@@ -830,7 +830,7 @@ class Manager:
|
|
|
830
830
|
|
|
831
831
|
elif action == OUTPUT_OVER_MQTT:
|
|
832
832
|
boneio_id = action_definition.get("boneio_id")
|
|
833
|
-
action_output = action_definition.get("action_output")
|
|
833
|
+
action_output = action_definition.get("action_output", TOGGLE)
|
|
834
834
|
action_to_execute = output_actions.get(action_output.upper())
|
|
835
835
|
if boneio_id and action_to_execute:
|
|
836
836
|
parsed_action = {
|
|
@@ -845,7 +845,7 @@ class Manager:
|
|
|
845
845
|
|
|
846
846
|
elif action == COVER_OVER_MQTT:
|
|
847
847
|
boneio_id = action_definition.get("boneio_id")
|
|
848
|
-
action_cover = action_definition.get("action_cover")
|
|
848
|
+
action_cover = action_definition.get("action_cover", TOGGLE)
|
|
849
849
|
action_to_execute = cover_actions.get(action_cover.upper())
|
|
850
850
|
if boneio_id and action_to_execute:
|
|
851
851
|
parsed_action = {
|
|
@@ -1494,11 +1494,12 @@ class Manager:
|
|
|
1494
1494
|
|
|
1495
1495
|
_LOGGER.info("Reloading remote devices configuration")
|
|
1496
1496
|
# Clean up old remote inputs and outputs before reload
|
|
1497
|
+
await self.inputs._remote_registrar.stop()
|
|
1497
1498
|
self.inputs.unregister_remote_inputs()
|
|
1498
1499
|
self.unregister_remote_outputs()
|
|
1499
1500
|
await self.remote_devices.reload(remote_devices_config)
|
|
1500
1501
|
# Re-register remote inputs and outputs from config
|
|
1501
|
-
self.register_remote_inputs()
|
|
1502
|
+
await self.register_remote_inputs()
|
|
1502
1503
|
self.register_remote_outputs()
|
|
1503
1504
|
# Broadcast all input states so frontend picks up new/removed remote inputs
|
|
1504
1505
|
self.inputs._broadcast_all_input_states()
|
|
@@ -1515,13 +1516,12 @@ class Manager:
|
|
|
1515
1516
|
# previous callbacks would run the old actions alongside the new ones.
|
|
1516
1517
|
await self.inputs._remote_registrar.stop()
|
|
1517
1518
|
self.inputs.unregister_remote_inputs()
|
|
1518
|
-
self.register_remote_inputs()
|
|
1519
|
-
await self.inputs._remote_registrar.start()
|
|
1519
|
+
await self.register_remote_inputs()
|
|
1520
1520
|
# Broadcast all input states so frontend picks up new/removed remote inputs
|
|
1521
1521
|
self.inputs._broadcast_all_input_states()
|
|
1522
1522
|
_LOGGER.info("Remote inputs configuration reloaded successfully")
|
|
1523
1523
|
|
|
1524
|
-
def register_remote_inputs(self) -> None:
|
|
1524
|
+
async def register_remote_inputs(self) -> None:
|
|
1525
1525
|
"""Register remote inputs from the ``remote_inputs`` config section.
|
|
1526
1526
|
|
|
1527
1527
|
Delegates to :meth:`InputManager.register_remote_inputs`.
|
|
@@ -1530,6 +1530,11 @@ class Manager:
|
|
|
1530
1530
|
config = self._config_helper.get_config()
|
|
1531
1531
|
remote_inputs_config = config.get("remote_inputs", [])
|
|
1532
1532
|
self.inputs.register_remote_inputs(self.remote_devices, remote_inputs_config)
|
|
1533
|
+
# Subscribe here rather than wait for the next MQTT connect: at startup
|
|
1534
|
+
# the broker is usually connected long before remote inputs register,
|
|
1535
|
+
# and the inputs would stay deaf until the connection dropped. Before
|
|
1536
|
+
# the connect the bus only records the listener and subscribes it then.
|
|
1537
|
+
await self.inputs._remote_registrar.start()
|
|
1533
1538
|
|
|
1534
1539
|
# Keep backward-compatible alias
|
|
1535
1540
|
register_esphome_binary_sensors = register_remote_inputs
|
boneio/core/messaging/basic.py
CHANGED
|
@@ -78,3 +78,9 @@ class MessageBus(ABC):
|
|
|
78
78
|
"""Unsubscribe from a topic and stop listening."""
|
|
79
79
|
pass
|
|
80
80
|
|
|
81
|
+
async def wait_until_subscribed(self) -> None:
|
|
82
|
+
"""Return once the broker holds this bus's subscriptions.
|
|
83
|
+
|
|
84
|
+
Until then a retained message cannot have arrived yet, so its absence
|
|
85
|
+
means nothing. Buses without a broker return at once.
|
|
86
|
+
"""
|
|
@@ -97,3 +97,7 @@ class CompositeMessageBus(MessageBus):
|
|
|
97
97
|
"""Unsubscribe from a topic and stop listening on all buses."""
|
|
98
98
|
for bus in self._buses:
|
|
99
99
|
await bus.unsubscribe_and_stop_listen(topic)
|
|
100
|
+
|
|
101
|
+
async def wait_until_subscribed(self) -> None:
|
|
102
|
+
"""Wait for every bus: one being up says nothing about another."""
|
|
103
|
+
await asyncio.gather(*(bus.wait_until_subscribed() for bus in self._buses))
|
boneio/core/messaging/mqtt.py
CHANGED
|
@@ -76,6 +76,7 @@ class MQTTClient(MessageBus):
|
|
|
76
76
|
self.asyncio_client = self.create_client()
|
|
77
77
|
self.reconnect_interval = 1
|
|
78
78
|
self._connection_established = False
|
|
79
|
+
self._subscribed = asyncio.Event()
|
|
79
80
|
self.publish_queue: UniqueQueue = UniqueQueue()
|
|
80
81
|
self._mqtt_energy_listeners: dict[str, Callable[..., Awaitable[None]]] = {}
|
|
81
82
|
# Listeners that are told whether a message is a retained replay.
|
|
@@ -227,6 +228,10 @@ class MQTTClient(MessageBus):
|
|
|
227
228
|
if self._connection_established:
|
|
228
229
|
await self.subscribe(topics=[topic])
|
|
229
230
|
|
|
231
|
+
@override
|
|
232
|
+
async def wait_until_subscribed(self) -> None:
|
|
233
|
+
await self._subscribed.wait()
|
|
234
|
+
|
|
230
235
|
@override
|
|
231
236
|
async def unsubscribe_and_stop_listen(self, topic: str) -> None:
|
|
232
237
|
await self.unsubscribe([topic])
|
|
@@ -476,6 +481,7 @@ class MQTTClient(MessageBus):
|
|
|
476
481
|
|
|
477
482
|
topics = self._topics + list(self._mqtt_energy_listeners.keys()) + self._discovery_topics
|
|
478
483
|
await self.subscribe(topics=topics)
|
|
484
|
+
self._subscribed.set()
|
|
479
485
|
# Connected: the next outage starts the backoff from scratch
|
|
480
486
|
# instead of waiting as long as the worst one before it.
|
|
481
487
|
self.reconnect_interval = 1
|
boneio/core/system_ops.py
CHANGED
|
@@ -379,3 +379,13 @@ def os_update_log(timeout: int = 30) -> Result:
|
|
|
379
379
|
def os_autoupdate_set(enabled: bool, timeout: int = 60) -> Result:
|
|
380
380
|
"""Switch automatic security updates on or off. Never reboots either way."""
|
|
381
381
|
return run("os-autoupdate-set", "on" if enabled else "off", timeout=timeout)
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
def disk_usage(timeout: int = 120) -> Result:
|
|
385
|
+
"""Docker images, the journal and the apt cache, in bytes, as JSON."""
|
|
386
|
+
return run("disk-usage", timeout=timeout)
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
def disk_clean(target: str, timeout: int = 360) -> Result:
|
|
390
|
+
"""Free space in ``docker`` (unused images) or ``apt`` (the package cache)."""
|
|
391
|
+
return run("disk-clean", target, timeout=timeout)
|
|
@@ -10,10 +10,10 @@ f2ed05c6f5934a15f12571139bdc225804f67b8c83561cc39868f7b2296d2697 docker/daemon.
|
|
|
10
10
|
66cc2d02710ac8d0311514b686518afa6d5a0bcbf0c8c069367e1db7157dadd7 docker/nodered/docker-compose-cloud.yaml
|
|
11
11
|
48ad7a194a78d3d1b018349b60834389841f56e287068988a75197cfaf9a62c2 docker/nodered/docker-compose.yaml
|
|
12
12
|
bff00753c72fb17609a6f7b3a58ef78b7b394da12d19fd65b875f2889695e2b4 docker/nodered/node-red/settings.js
|
|
13
|
-
|
|
13
|
+
a2e88a23869da1569facc5a4853b621ec875f08b791c98d2ca49deb09c4dc647 helpers/boneio-containers
|
|
14
14
|
dff0cd02daad2cbd525a0535f8f3562bb742e7e737b24c69e5afa986415e67e4 helpers/boneio-helpers-heal
|
|
15
15
|
1a2b4079f63991a055133e0853b5ec8764190c432d9a323d75614e19e7c86e14 helpers/boneio-migrate-v2
|
|
16
|
-
|
|
16
|
+
68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50 helpers/boneio-system
|
|
17
17
|
f316c778b3125e4e992942c889c4082f8a12f578a6d68c4e7c79fa80e4cc94a1 issue.d/10-boneio.issue
|
|
18
18
|
83260e860f5431f3240617e88dba456ba39c52dbe4625e832d00fd241bad7701 journald/boneio-console.conf
|
|
19
19
|
e6013f4fbf11693f39123b1e6159c7d7224a7c832e994722120980f64039c17e journald/journald.conf
|
|
@@ -724,7 +724,9 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
724
724
|
|
|
725
725
|
if args.argument is not None:
|
|
726
726
|
raise Refused(f"verb {args.verb!r} takes no argument")
|
|
727
|
-
|
|
727
|
+
# Pulling an image onto a BeagleBone takes minutes, as for Caddy above.
|
|
728
|
+
timeout = 900 if VERBS.get(args.verb, ("",))[0] == "pull" else 120
|
|
729
|
+
return _run(_argv_for(args.verb), timeout=timeout)
|
|
728
730
|
except Refused as exc:
|
|
729
731
|
_LOGGER.error("REFUSED: %s", exc)
|
|
730
732
|
return 2 if "not owned by root" in str(exc) else 1
|
|
@@ -326,6 +326,7 @@ VERBS = (
|
|
|
326
326
|
"service-password-state", "service-password-init", "service-password-change",
|
|
327
327
|
"os-update-state", "os-update-start", "os-update-run", "os-update-log",
|
|
328
328
|
"os-autoupdate-set",
|
|
329
|
+
"disk-usage", "disk-clean",
|
|
329
330
|
)
|
|
330
331
|
|
|
331
332
|
|
|
@@ -2250,6 +2251,84 @@ def _autoupdate_state() -> dict:
|
|
|
2250
2251
|
}
|
|
2251
2252
|
|
|
2252
2253
|
|
|
2254
|
+
#: What ``disk-clean`` may run, by name. Nothing the caller sends reaches argv.
|
|
2255
|
+
#: ``image prune -a`` keeps every image a container still refers to, stopped
|
|
2256
|
+
#: ones included, so Node-RED and Caddy keep theirs.
|
|
2257
|
+
DISK_CLEAN: dict[str, tuple[list[str], int]] = {
|
|
2258
|
+
"docker": (["docker", "image", "prune", "-a", "-f"], 300),
|
|
2259
|
+
"apt": (["apt-get", "clean"], 120),
|
|
2260
|
+
}
|
|
2261
|
+
|
|
2262
|
+
|
|
2263
|
+
def _bytes_in(path: str) -> int | None:
|
|
2264
|
+
"""Bytes under *path* on its own filesystem, or None if du cannot say."""
|
|
2265
|
+
try:
|
|
2266
|
+
out = subprocess.run(
|
|
2267
|
+
["du", "-sxb", path], capture_output=True, text=True, timeout=60
|
|
2268
|
+
).stdout
|
|
2269
|
+
return int(out.split()[0])
|
|
2270
|
+
except (OSError, subprocess.SubprocessError, ValueError, IndexError):
|
|
2271
|
+
return None
|
|
2272
|
+
|
|
2273
|
+
|
|
2274
|
+
def _docker_images() -> list[dict] | None:
|
|
2275
|
+
"""Every image with its size and whether a container uses it.
|
|
2276
|
+
|
|
2277
|
+
``docker image inspect`` gives sizes in bytes; ``docker system df`` only
|
|
2278
|
+
gives them rounded for a person to read. None when Docker is not there.
|
|
2279
|
+
"""
|
|
2280
|
+
def docker(*args: str) -> list[str]:
|
|
2281
|
+
result = subprocess.run(
|
|
2282
|
+
["docker", *args], capture_output=True, text=True, timeout=60
|
|
2283
|
+
)
|
|
2284
|
+
if result.returncode != 0:
|
|
2285
|
+
raise OSError(result.stderr.strip())
|
|
2286
|
+
return [line for line in result.stdout.splitlines() if line.strip()]
|
|
2287
|
+
|
|
2288
|
+
try:
|
|
2289
|
+
ids = docker("image", "ls", "-q", "--no-trunc")
|
|
2290
|
+
if not ids:
|
|
2291
|
+
return []
|
|
2292
|
+
containers = docker("ps", "-aq")
|
|
2293
|
+
used = set(docker("inspect", "--format", "{{.Image}}", *containers)) if containers else set()
|
|
2294
|
+
images = []
|
|
2295
|
+
template = "{{.Id}} {{.Size}} {{json .RepoTags}} {{json .RepoDigests}}"
|
|
2296
|
+
for line in docker("image", "inspect", "--format", template, *ids):
|
|
2297
|
+
image_id, size, tags, digests = line.split(" ", 3)
|
|
2298
|
+
# An image pinned by digest, as Caddy is, has no tag to show.
|
|
2299
|
+
names = json.loads(tags) or [d[:d.index("@") + 20] for d in json.loads(digests) or []]
|
|
2300
|
+
images.append({
|
|
2301
|
+
"tags": names,
|
|
2302
|
+
"size": int(size),
|
|
2303
|
+
"in_use": image_id in used,
|
|
2304
|
+
})
|
|
2305
|
+
return images
|
|
2306
|
+
except (OSError, subprocess.SubprocessError, ValueError):
|
|
2307
|
+
return None
|
|
2308
|
+
|
|
2309
|
+
|
|
2310
|
+
def _disk_usage() -> int:
|
|
2311
|
+
"""Print what takes room on ``/`` that the app cannot read itself.
|
|
2312
|
+
|
|
2313
|
+
Returns:
|
|
2314
|
+
0, with a JSON object on stdout. Changes nothing.
|
|
2315
|
+
"""
|
|
2316
|
+
print(json.dumps({
|
|
2317
|
+
"images": _docker_images(),
|
|
2318
|
+
"journal": _bytes_in("/var/log/journal"),
|
|
2319
|
+
"apt_cache": _bytes_in("/var/cache/apt/archives"),
|
|
2320
|
+
}))
|
|
2321
|
+
return 0
|
|
2322
|
+
|
|
2323
|
+
|
|
2324
|
+
def _disk_clean(target: str | None) -> int:
|
|
2325
|
+
"""Free space in one of the fixed places in :data:`DISK_CLEAN`."""
|
|
2326
|
+
if target not in DISK_CLEAN:
|
|
2327
|
+
raise Refused(f"disk-clean takes one of {', '.join(DISK_CLEAN)}")
|
|
2328
|
+
argv, timeout = DISK_CLEAN[target]
|
|
2329
|
+
return _run(argv, timeout=timeout)
|
|
2330
|
+
|
|
2331
|
+
|
|
2253
2332
|
def _os_autoupdate_set(argument: str | None) -> int:
|
|
2254
2333
|
"""Switch automatic security updates on or off.
|
|
2255
2334
|
|
|
@@ -2429,6 +2508,14 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
2429
2508
|
return _os_update_log()
|
|
2430
2509
|
if args.verb == "os-autoupdate-set":
|
|
2431
2510
|
return _os_autoupdate_set(args.argument)
|
|
2511
|
+
if args.verb == "disk-usage":
|
|
2512
|
+
if args.argument is not None:
|
|
2513
|
+
raise Refused("disk-usage takes no arguments")
|
|
2514
|
+
return _disk_usage()
|
|
2515
|
+
if args.verb == "disk-clean":
|
|
2516
|
+
if args.value is not None:
|
|
2517
|
+
raise Refused("disk-clean takes one argument")
|
|
2518
|
+
return _disk_clean(args.argument)
|
|
2432
2519
|
raise Refused(f"unknown verb {args.verb!r}. Allowed: {', '.join(VERBS)}")
|
|
2433
2520
|
except Refused as exc:
|
|
2434
2521
|
_LOGGER.error("REFUSED: %s", exc)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"
|
|
1
|
+
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"},{"action":"install_file","dst":"/usr/sbin/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
�@X��B��N.kMnBG�敒�0�Z�lfq-iPV��ٰU����E��&b���^�m�OZP
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"
|
|
1
|
+
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"},{"action":"install_file","dst":"/usr/sbin/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
�@X��B��N.kMnBG�敒�0�Z�lfq-iPV��ٰU����E��&b���^�m�OZP
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/docker-compose.yaml","expected_sha256":"48ad7a194a78d3d1b018349b60834389841f56e287068988a75197cfaf9a62c2","group":"root","mode":420,"owner":"root","src":"docker/nodered/docker-compose.yaml","template_vars":{}},{"action":"install_file","dst":"/usr/lib/boneio/trusted/docker-compose-cloud.yaml","expected_sha256":"66cc2d02710ac8d0311514b686518afa6d5a0bcbf0c8c069367e1db7157dadd7","group":"root","mode":420,"owner":"root","src":"docker/nodered/docker-compose-cloud.yaml","template_vars":{}},{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-containers","expected_sha256":"
|
|
1
|
+
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/docker-compose.yaml","expected_sha256":"48ad7a194a78d3d1b018349b60834389841f56e287068988a75197cfaf9a62c2","group":"root","mode":420,"owner":"root","src":"docker/nodered/docker-compose.yaml","template_vars":{}},{"action":"install_file","dst":"/usr/lib/boneio/trusted/docker-compose-cloud.yaml","expected_sha256":"66cc2d02710ac8d0311514b686518afa6d5a0bcbf0c8c069367e1db7157dadd7","group":"root","mode":420,"owner":"root","src":"docker/nodered/docker-compose-cloud.yaml","template_vars":{}},{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-containers","expected_sha256":"a2e88a23869da1569facc5a4853b621ec875f08b791c98d2ca49deb09c4dc647","group":"root","mode":493,"owner":"root","src":"helpers/boneio-containers","template_vars":{},"validate":"python"},{"action":"install_file","dst":"/usr/sbin/boneio-containers","expected_sha256":"a2e88a23869da1569facc5a4853b621ec875f08b791c98d2ca49deb09c4dc647","group":"root","mode":493,"owner":"root","src":"helpers/boneio-containers","template_vars":{},"validate":"python"}]
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"action":"apt_install","optional":true,"packages":["unattended-upgrades"]},{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"
|
|
1
|
+
[{"action":"apt_install","optional":true,"packages":["unattended-upgrades"]},{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"},{"action":"install_file","dst":"/usr/sbin/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"},{"action":"install_file","dst":"/etc/apt/apt.conf.d/52boneio-unattended","expected_sha256":"e25f417283a510e0f13b3f9ae66285c4d2e19710d72135b71938ff8f675adb10","group":"root","mode":420,"owner":"root","src":"apt/52boneio-unattended","template_vars":{}},{"action":"install_file","dst":"/etc/apt/apt.conf.d/52boneio-periodic","expected_sha256":"1db8877b66d55bc203f8190285bb6834130f4ecca1d79b2ed8dfda2b2cd1581b","group":"root","mode":420,"owner":"root","src":"apt/52boneio-periodic","template_vars":{}},{"action":"install_file","dst":"/etc/systemd/system/apt-daily.timer.d/50-boneio-no-catchup.conf","expected_sha256":"4dcbb133d42e4e57396b47d0846b1ced0a1c099602d61e370f5c0b89ad2c2425","group":"root","mode":420,"owner":"root","src":"systemd/dropins/timer-no-persistent.conf","template_vars":{}},{"action":"install_file","dst":"/etc/systemd/system/apt-daily-upgrade.timer.d/50-boneio-no-catchup.conf","expected_sha256":"4dcbb133d42e4e57396b47d0846b1ced0a1c099602d61e370f5c0b89ad2c2425","group":"root","mode":420,"owner":"root","src":"systemd/dropins/timer-no-persistent.conf","template_vars":{}},{"action":"install_file","dst":"/etc/systemd/system/apt-daily.service.d/50-boneio-priority.conf","expected_sha256":"13dfdaca6c3206c33a1baf4787418b31f8b9fc336a852889b6c5a0055681a921","group":"root","mode":420,"owner":"root","src":"systemd/dropins/apt-daily-priority.conf","template_vars":{}},{"action":"install_file","dst":"/etc/systemd/system/apt-daily-upgrade.service.d/50-boneio-priority.conf","expected_sha256":"13dfdaca6c3206c33a1baf4787418b31f8b9fc336a852889b6c5a0055681a921","group":"root","mode":420,"owner":"root","src":"systemd/dropins/apt-daily-priority.conf","template_vars":{}},{"action":"install_file","dst":"/etc/systemd/system/boneio-dpkg-recover.service","expected_sha256":"ce2672887f32b936c871aa91eaad2596f08c1af995fc6d8e24f6b79f833e1bae","group":"root","mode":420,"owner":"root","src":"systemd/boneio-dpkg-recover.service","template_vars":{}},{"action":"systemctl_daemon_reload"},{"action":"systemctl_enable","unit":"boneio-dpkg-recover.service"},{"action":"systemctl_enable","unit":"apt-daily.timer"},{"action":"systemctl_restart","unit":"apt-daily.timer"},{"action":"systemctl_enable","unit":"apt-daily-upgrade.timer"},{"action":"systemctl_restart","unit":"apt-daily-upgrade.timer"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"
|
|
1
|
+
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"},{"action":"install_file","dst":"/usr/sbin/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
�@X��B��N.kMnBG�敒�0�Z�lfq-iPV��ٰU����E��&b���^�m�OZP
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"
|
|
1
|
+
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"},{"action":"install_file","dst":"/usr/sbin/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
�@X��B��N.kMnBG�敒�0�Z�lfq-iPV��ٰU����E��&b���^�m�OZP
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"
|
|
1
|
+
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"},{"action":"install_file","dst":"/usr/sbin/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
�@X��B��N.kMnBG�敒�0�Z�lfq-iPV��ٰU����E��&b���^�m�OZP
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"
|
|
1
|
+
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"},{"action":"install_file","dst":"/usr/sbin/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
�@X��B��N.kMnBG�敒�0�Z�lfq-iPV��ٰU����E��&b���^�m�OZP
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"
|
|
1
|
+
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"},{"action":"install_file","dst":"/usr/sbin/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"},{"action":"install_file","dst":"/usr/lib/boneio/overlays/BONEIO-BLACK-PINS-v0.2-v0.3.dtbo","expected_sha256":"e4dc9400201f74f04e71e2e9eaab3eed4dca39f0906dd717511578c138fcf97b","group":"root","mode":420,"owner":"root","src":"overlays/BONEIO-BLACK-PINS-v0.2-v0.3.dtbo","template_vars":{}}]
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"
|
|
1
|
+
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"},{"action":"install_file","dst":"/usr/sbin/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"},{"action":"ufw_allow","comment":"MQTT over TLS","port":8883,"proto":"tcp"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
� �`��w���{�SԘ|��*n��h��$<��>J��?XՁ�H�L=e��`�����b`�
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"
|
|
1
|
+
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"},{"action":"install_file","dst":"/usr/sbin/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
�@X��B��N.kMnBG�敒�0�Z�lfq-iPV��ٰU����E��&b���^�m�OZP
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-containers","expected_sha256":"a2e88a23869da1569facc5a4853b621ec875f08b791c98d2ca49deb09c4dc647","group":"root","mode":493,"owner":"root","src":"helpers/boneio-containers","template_vars":{},"validate":"python"},{"action":"install_file","dst":"/usr/sbin/boneio-containers","expected_sha256":"a2e88a23869da1569facc5a4853b621ec875f08b791c98d2ca49deb09c4dc647","group":"root","mode":493,"owner":"root","src":"helpers/boneio-containers","template_vars":{},"validate":"python"}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"action":"install_file","dst":"/usr/lib/boneio/trusted/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"},{"action":"install_file","dst":"/usr/sbin/boneio-system","expected_sha256":"68612abbc8b02cd865a8d8dcd83025334fb5e5f89db4500c45954495f8a97a50","group":"root","mode":493,"owner":"root","src":"helpers/boneio-system","template_vars":{},"validate":"python"}]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
�@X��B��N.kMnBG�敒�0�Z�lfq-iPV��ٰU����E��&b���^�m�OZP
|