Additional device information missing ?

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
Dave21w
Posts: 378
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Additional device information missing ?

Post 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
User avatar
heggink
Posts: 978
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Additional device information missing ?

Post 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
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Dave21w
Posts: 378
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: Additional device information missing ?

Post 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.
Last edited by Dave21w on Thursday 03 March 2022 14:37, edited 1 time in total.
User avatar
jvdz
Posts: 2269
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Additional device information missing ?

Post by jvdz »

Correct... Level info should be supported, and when received, should be added to the original device in case a match is found.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Newbie
Posts: 10
Joined: Thursday 06 April 2017 23:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Additional device information missing ?

Post 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 612 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 612 times
Is there a way to activate this? I remember that with the old OZW battery was shown.
Newbie
Posts: 10
Joined: Thursday 06 April 2017 23:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Additional device information missing ?

Post 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"
}
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest