Multiple values in one Z-Wave device not discovered

For Z-Wave related questions in Domoticz

Moderator: leecollings

Post Reply
capitalT
Posts: 11
Joined: Thursday 30 May 2019 9:51
Target OS: Linux
Domoticz version:
Contact:

Multiple values in one Z-Wave device not discovered

Post by capitalT »

Hi,

As many, I have moved to a MQTT and Z-Wave-JS. I am not an expert on either of these but I managed to get it working, albeit with some trickery.

I have Fibraro smart switch has a couple of power meters and, of course, a switch. I found the following configuration under "Home Assistant - devices":
The strange thing here is that it seems that the order of the values "37-0-currentValue" and "37-0-targetValue" matter. I had to swap them to make the switch working. I only get one device and I suppose only the first value is used domoticz autodiscovery.

Code: Select all

{
  "type": "switch",
  "object_id": "switch",
  "discovery_payload": {
    "payload_off": false,
    "payload_on": true,
    "value_template": "{{ value_json.value }}",
    "command_topic": "zwave/Vloerverwarming/37/0/targetValue/set",
    "state_topic": "zwave/Vloerverwarming/37/0/currentValue",
    "device": {
      "identifiers": [
        "zwavejs2mqtt_0xc1dfb822_node11"
      ],
      "manufacturer": "Fibargroup",
      "model": "Metered Wall Plug Switch (FGWP102)",
      "name": "Vloerverwarming",
      "sw_version": "3.2"
    },
    "name": "Vloerverwarming_switch",
    "unique_id": "zwavejs2mqtt_0xc1dfb822_11-37-0-currentValue"
  },
  "discoveryTopic": "switch/Vloerverwarming/switch/config",
  "values": [
    "37-0-currentValue",
    "37-0-targetValue"
  ],
  "persistent": false,
  "ignoreDiscovery": false,
  "id": "switch_switch"
}
Could anyone tell me if this is indeed a bug? Also if my solution solves anyone else's problem, I would like to know.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest