Open jamesarbrown opened 4 years ago
@jamesarbrown would you like this to be extended to all devices or just for some? How would yout expect this to be implemented in the UI?
@robertsLando I think the connectivity is currently created by all devices on the mqtt broker, so I think my answer would be that the JSON should be generated for all, after all it will follow the same pattern always and you can always hide within HA
It would be nice if we can push a connectivity device to hass to easily pickup failed zwave nodes
Working Example For a Fibaro Smart Implant { "type": "binary_sensor", "object_id": "connectivity", "discovery_payload": { "payload_on": true, "payload_off": false, "value_template": "{{ value_json.value }}", "device_class": "connectivity", "state_topic": "homeassistant/Gate/Gate/status", "json_attributes_topic": "homeassistant/Gate/Gate/status", "device": { "identifiers": [ "zwave2mqtt_0xd15fadb6_node20" ], "manufacturer": "FIBARO System", "model": "FGBS222 Smart Implant (0x1000)", "name": "Gate-Gate", "sw_version": "5.01" }, "name": "Gate-Gate_connectivity", "unique_id": "zwave2mqtt_0xd15fadb6_20-status" }, "discoveryTopic": "binary_sensor/Gate-Gate/status/config", "values": [ "status" ], "persistent": false, "ignoreDiscovery": false, "id": "binary_sensor_connectivity" }