Page 2 of 2
Re: How do I get batterylevels back?
Posted: Tuesday 12 August 2025 15:55
by Doler
Updated my live system to Trixy and applied the Domoticz update, Z-wave batterylevel problem remains the same. And yes, I did a wake-up on sensors and updated hardware (in case you wondered).
Re: How do I get batterylevels back?
Posted: Tuesday 12 August 2025 16:21
by gizmocuz
@Doler, do you have low batteries? If not, nothing will indeed change. Only when the Low Battery indication is set to 'true', then the battery levels of the sensors will be set to 0 (and only after they have been received one more time)
Re: How do I get batterylevels back?
Posted: Tuesday 12 August 2025 16:36
by Doler
No, I have no low batteries, all Low Battery devices are false. Hereby the configs for battery_islow (
state_topic: IsLow) and battery_level (
state_topic: level)
Code: Select all
{
"payload_on": true,
"payload_off": false,
"value_template": "{{ value_json.value }}",
"device_class": "battery",
"state_topic": "zwave/FMS1/128/0/isLow",
"availability": [
{
"payload_available": "true",
"payload_not_available": "false",
"topic": "zwave/FMS1/status",
"value_template": "{{'true' if value_json.value else 'false'}}"
},
{
"topic": "zwave/_CLIENTS/ZWAVE_GATEWAY-zwave-js-ui/status",
"value_template": "{{'online' if value_json.value else 'offline'}}"
},
{
"payload_available": "true",
"payload_not_available": "false",
"topic": "zwave/driver/status"
}
],
"availability_mode": "all",
"json_attributes_topic": "zwave/FMS1/128/0/isLow",
"device": {
"identifiers": [
"zwavejs2mqtt_0xfe88fc1e_node14"
],
"manufacturer": "Fibargroup",
"model": "Motion Sensor (FGMS001)",
"name": "FMS1",
"sw_version": "2.7"
},
"name": "FMS1_battery_islow",
"unique_id": "zwavejs2mqtt_0xfe88fc1e_14-128-0-isLow"
}
zwave-ad/binary_sensor/FMS1/battery_islow/config
Code: Select all
{
"value_template": "{{ value_json.value }}",
"unit_of_measurement": "%",
"device_class": "battery",
"state_topic": "zwave/FMS1/128/0/level",
"availability": [
{
"payload_available": "true",
"payload_not_available": "false",
"topic": "zwave/FMS1/status",
"value_template": "{{'true' if value_json.value else 'false'}}"
},
{
"topic": "zwave/_CLIENTS/ZWAVE_GATEWAY-zwave-js-ui/status",
"value_template": "{{'online' if value_json.value else 'offline'}}"
},
{
"payload_available": "true",
"payload_not_available": "false",
"topic": "zwave/driver/status"
}
],
"availability_mode": "all",
"json_attributes_topic": "zwave/FMS1/128/0/level",
"device": {
"identifiers": [
"zwavejs2mqtt_0xfe88fc1e_node14"
],
"manufacturer": "Fibargroup",
"model": "Motion Sensor (FGMS001)",
"name": "FMS1",
"sw_version": "2.7"
},
"name": "FMS1_battery_level",
"unique_id": "zwavejs2mqtt_0xfe88fc1e_14-128-0-level"
}
zwave-ad/sensor/FMS1/battery_level/config
Re: How do I get batterylevels back?
Posted: Tuesday 12 August 2025 17:10
by gizmocuz
So it is working correctly. (And the workings is how I wrote it before)
Re: How do I get batterylevels back?
Posted: Wednesday 13 August 2025 8:44
by Doler
This morning all looks ok, battery level is populated for almost all (sub-)devices. I tested with updating the Hardware in order to check the generation of battery_level devices as it was the case in the faulty situation. Every thing is ok now and my battery check is working again.
Thanks for solving this.