Possible issue with Plug-in Battery measure_battery_threshold_below Flow Card – v3.19.9
Hi Jeroen,
I am using HomeWizard app v3.19.9 on a Homey Pro 2023 with two HomeWizard Plug-in Batteries.
During an API-based validation of the Homey Flow Card catalogue, I found a reproducible issue affecting both Plug-in Batteries.
For both devices Homey exposes the trigger:
measure_battery_threshold_below
The raw Homey Web API shows the trigger argument as:
name: "threshold"
type: "number"
placeholder: "%"
title: null
Both batteries generate the same result independently.
The batteries themselves are working normally and their SoC is reported correctly. The Condition and Action Flow Card catalogues also validate correctly. Only the Trigger catalogue fails schema validation on the generated battery-threshold cards.
The Homey integration consuming the Web API expects the Flow Card metadata title to be a string and therefore rejects the Trigger catalogue when these null values are encountered.
I realise this might be generated automatically by Homey from the measure_battery capability rather than being an issue in your app itself.
Could you please advise whether the Plug-in Battery driver explicitly adds measure_battery, and whether this null metadata can be prevented at app/driver level? If this is entirely generated by Homey, I can report the issue further upstream instead.
I have deliberately not removed/re-paired the batteries or changed their capabilities, as everything else is functioning correctly.
If useful, I can provide the exact Flow Card IDs and additional API/diagnostic output.
Thanks in advance.