Page 1 of 1

batteryLevel not getting fetched .

Posted: Monday 13 April 2026 15:41
by sloeber70
Hi,

I am using MotionBlinds and I am using a dzvents script to manage them: open - close by weather updates.

I am also logging batterylevels in separate virtual sensors.

Since the last reboot these batteryLevels are not read anymore.
Devices:
5967 VIRTUALSENSORS 00087967 1 DuoBatL General Percentage 85% - - 2026-04-13 03:01:00
5968 VIRTUALSENSORS 00087968 1 DuoBatM General Percentage 75% - - 2026-04-13 03:01:00
5969 VIRTUALSENSORS 00087969 1 DuoBatR General Percentage 84% - - 2026-04-13 03:01:00

dzscript:
local linksbat = domoticz.devices('Duo Links').batteryLevel
local middenbat = domoticz.devices('Duo Midden').batteryLevel
local rechtsbat = domoticz.devices('Duo Rechts').batteryLevel

Log:
BlindsOpenToe +++: ...icz/scripts/dzVents/generated_scripts/BlindsOpenToe2.lua:143: attempt to concatenate a nil value (field 'batteryLevel')

It seems that this field is not accepted anymore? Is this correct? Other name used?

Re: batteryLevel not getting fetched .

Posted: Monday 13 April 2026 16:03
by sloeber70
Hmmm OK...

reinstalling the plugin and re-creating devices and updating to the last beta, along with a system reboot,solved my problem.

2026-04-13 16:00:01.929 Status: Set UserVariable BlindsStart = 14:56
2026-04-13 16:01:00.523 dzVents: !Info: +++ BlindsOpenToe +++: Heat geen wijziging - BuitenTemperatuur:11.0 UV:4.0 LUX: 2861 - HeatAlert: Nee sedert: 1161 minuten. Airco verbruik: 2.5 TV Verbruik: 0.5 Geen wijzigingen.
2026-04-13 16:01:00.523 dzVents: !Info: +++ BlindsOpenToe +++: Links: Open 100% Bat: 99 % - Midden: Open 100%% Bat: 98 % - Rechts: Open 100%% Bat: 100 %
2026-04-13 16:01:00.523 dzVents: !Info: +++ BlindsOpenToe +++: Tijdsblok - Start om 14:56u Einde: 20:39u
2026-04-13 16:01:00.523 dzVents: !Info: +++ BlindsOpenToe +++: Solar: 351 Watt/m2 Solar MAX: 150 Watt/m2 - Regen: 0 mm - Bewolking: 50% Bewolking MAX: 50%
2026-04-13 16:01:00.523 dzVents: !Info: +++ BlindsOpenToe +++: LUXMAX: 4500 lux - UVMax: 4.5
2026-04-13 16:01:00.523 dzVents: !Info: +++ BlindsOpenToe +++: TempMAX: 16.0
2026-04-13 16:01:00.541 dzVents: !Info: +++ BlindsOpenToe +++: Heat geen wijziging - BuitenTemperatuur:11.0 UV:4.0 LUX: 2861 - HeatAlert: Nee sedert: 1161 minuten. Airco verbruik: 2.5 TV Verbruik: 0.5 Geen wijzigingen.