Page 1 of 1

Additional device information missing ?

Posted: Thursday 03 March 2022 9:45
by Dave21w
I understand that as off Domoticz 2022 we have the "MQTT Auto Discovery Client Gateway with LAN Interface" built in and from what I have read this is now the prefered option for getting devices into Domoticz including zigbee.
I have set this up and yes it works just fine however it only seems to import the actual device status, other information like battery voltage, signal level etc is not imported and doesn't appear in the device list even as an unused item.
When using the zigbee2mqtt plugin these values can be imported as seperate devices or left as an unused device, even if left as unused you still get a low battery alert which is very useful.

Am I missing something obvious to get this other information ?

TIA
Dave

Re: Additional device information missing ?

Posted: Thursday 03 March 2022 10:21
by heggink
Hey Dave,

Not all autodiscovery based info is replicated into domoticz AFAIK. Battery info is, signal info I believe is not (I checked for my zigbee and zwave devices). That info can be easily found in zwavejs2mqtt and zigbee2mqtt. The battery info will ensure that domoticz canmonitor battery levels so devices won't die without an alert (although I have seen many devices going from 50% straight to dying without domoticz being able to pick up on that).

I could imagine that signal levels would be helpful if you would want to build alerts/scrips in domoticz but I don't think there was a need/requirement so far. If you have such a requirement then let us know and we can see what can be done. There's incremental developent on a daily basis (just added esphome support yesterday). That said, some functions are better left in their respective subsystems as they are not useful in domoticz and would only lead to development and maintenance effort. Which functions are and are not is obviously somewhat subjective so appreciate your input on that ;-).

kr,

Herman

Re: Additional device information missing ?

Posted: Thursday 03 March 2022 11:28
by Dave21w
A thousand apologies, I'm obviously far to impatient, I'm doing a new Domotcz install from scratch and the devices in z2m appeared instantly but no battery info hence my post, after waiting a while this information has also appeared.

Re: Additional device information missing ?

Posted: Thursday 03 March 2022 13:28
by jvdz
Correct... Level info should be supported, and when received, should be added to the original device in case a match is found.

Re: Additional device information missing ?

Posted: Monday 11 April 2022 22:40
by Newbie
One question (ok I know what "should be supported" means).

my zwave setup includes two Neo Coolcam water sensors and a keyfob Fibaro FGKF601. In the zwavejs2mqtt control panel I can see the battery status of all my (three) battery powered devices:
Screenshot_20220411_221909.png
Screenshot_20220411_221909.png (36.22 KiB) Viewed 649 times
but in the domoticz devices panel I can see only the Neo Coolcam water sensors battery status.
Screenshot_20220411_222718.png
Screenshot_20220411_222718.png (110.87 KiB) Viewed 649 times
Is there a way to activate this? I remember that with the old OZW battery was shown.

Re: Additional device information missing ?

Posted: Monday 11 April 2022 22:44
by Newbie
Here is a fragment (not all due to the forum limit exceed) of the "debug" as in the zwavejs2mqtt control panel:

Code: Select all

     "sensor_battery_level": {
      "type": "sensor",
      "object_id": "battery_level",
      "discovery_payload": {
        "value_template": "{{ value_json.value }}",
        "device_class": "battery",
        "unit_of_measurement": "%",
        "state_topic": "zwave/7/128/0/level",
        "json_attributes_topic": "zwave/7/128/0/level",
        "device": {
          "identifiers": [
            "zwavejs2mqtt_0xc7a68add_node7"
          ],
          "manufacturer": "Fibargroup",
          "model": "Keyfob (FGKF601)",
          "name": "Telecomando Chiara",
          "sw_version": "3.2"
        },
        "name": "Telecomando Chiara_battery_level",
        "unique_id": "zwavejs2mqtt_0xc7a68add_7-128-0-level"
      },
      "discoveryTopic": "sensor/Telecomando_Chiara/battery_level/config",
      "values": [
        "128-0-level"
      ],
      "persistent": false,
      "ignoreDiscovery": false
    },
    "binary_sensor_battery_islow": {
      "type": "binary_sensor",
      "object_id": "battery_islow",
      "discovery_payload": {
        "payload_on": true,
        "payload_off": false,
        "value_template": "{{ value_json.value }}",
        "device_class": "battery",
        "state_topic": "zwave/7/128/0/isLow",
        "json_attributes_topic": "zwave/7/128/0/isLow",
        "device": {
          "identifiers": [
            "zwavejs2mqtt_0xc7a68add_node7"
          ],
          "manufacturer": "Fibargroup",
          "model": "Keyfob (FGKF601)",
          "name": "Telecomando Chiara",
          "sw_version": "3.2"
        },
        "name": "Telecomando Chiara_battery_islow",
        "unique_id": "zwavejs2mqtt_0xc7a68add_7-128-0-isLow"
      },
      "discoveryTopic": "binary_sensor/Telecomando_Chiara/battery_islow/config",
      "values": [
        "128-0-isLow"
      ],
      "persistent": false,
      "ignoreDiscovery": false
    }
  },
  "failed": false,
  "inited": true,
  "hexId": "0x010f-0x1001-0x1000",
  "dbLink": "https://devices.zwave-js.io/?jumpTo=0x010f:0x1001:0x1000:3.2",
  "manufacturerId": 271,
  "productId": 4096,
  "productType": 4097,
  "deviceConfig": {
    "filename": "/snapshot/zwavejs2mqtt/node_modules/@zwave-js/config/config/devices/0x010f/fgkf601.json",
    "isEmbedded": true,
    "manufacturer": "Fibargroup",
    "manufacturerId": 271,
    "label": "FGKF601",
    "description": "Keyfob",
    "devices": [
      {
        "productType": 4097,
        "productId": 4096
      },
      {
        "productType": 4097,
        "productId": 8192
      },
      {
        "productType": 4097,
        "productId": 12288
      },
      {
        "productType": 4097,
        "productId": 16384
      }
    ],
    "firmwareVersion": {
      "min": "0.0",
      "max": "255.255"
    },
    "paramInformation": {
      "_map": {}
    }
  },
  "productLabel": "FGKF601",
  "productDescription": "Keyfob",
  "manufacturer": "Fibargroup",
  "firmwareVersion": "3.2",
  "protocolVersion": 3,
  "zwavePlusVersion": 1,
  "zwavePlusNodeType": 0,
  "zwavePlusRoleType": 4,
  "nodeType": 1,
  "endpointsCount": 0,
  "endpointIndizes": [],
  "isSecure": false,
  "security": "None",
  "supportsSecurity": false,
  "supportsBeaming": true,
  "isControllerNode": false,
  "isListening": false,
  "isFrequentListening": false,
  "isRouting": true,
  "keepAwake": false,
  "maxDataRate": 100000,
  "deviceClass": {
    "basic": 4,
    "generic": 24,
    "specific": 1
  },
  "deviceId": "271-4096-4097",
  "status": "Asleep",
  "interviewStage": "Complete",
  "minBatteryLevel": 47,
  "batteryLevels": [
    47
  ],
  "statistics": {
    "commandsTX": 0,
    "commandsRX": 1,
    "commandsDroppedRX": 0,
    "commandsDroppedTX": 0,
    "timeoutResponse": 0
  },
  "lastActive": 1649624277251,
  "_name": "Telecomando Chiara"
}