How does zwave-js add Custom information in Device Panel

I see that zwave_js is able to place additional information in the device panel. I’ve also browsed it’s source code and don’t see how it is done. I have an integration that I’d like to add information to this panel - how is this done?

The ha-config-device-page custom element has special code to handle zwave_js devices, and this is the code that renders the Z-Wave Info for the device. The data is obtained via the websocket API.

1 Like

Thanks. Looks like the simple way. Be good to have it extensible via an attribute dict. Maybe I’ll find some time…

The equipment in the integration I manage has lots of useful stuff - equipment type, model number, serial #, capacity, # of stages, control sw version,…

I suppose I could add a single sensor entity with a bunch of attributes but having some of that stuff which is static in the device page would be useful…anyways….


                                {
                                    "id": 1,
                                    "feature": {
                                        "name": "Equipment Type Name",
                                        "format": "nts",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "HeatPump"
                                            }
                                        ],
                                        "fid": 15,
                                        "unit": ""
                                    }
                                },
                                {
                                    "id": 2,
                                    "feature": {
                                        "name": "Unit Model Number",
                                        "format": "nts",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "EIM - Heat Pump"
                                            }
                                        ],
                                        "fid": 6,
                                        "unit": ""
                                    }
                                },
                                {
                                    "id": 3,
                                    "feature": {
                                        "name": "Unit Serial Number",
                                        "format": "nts",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "1710-018423"
                                            }
                                        ],
                                        "fid": 7,
                                        "unit": ""
                                    }
                                },
                                {
                                    "id": 4,
                                    "feature": {
                                        "name": "Unit Nominal Capacity",
                                        "format": "u16q4",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "42"
                                            }
                                        ],
                                        "fid": 5,
                                        "unit": "kBTU"
                                    }
                                },
                                {
                                    "id": 5,
                                    "feature": {
                                        "name": "Number of Heating Stages",
                                        "format": "uint8",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "1"
                                            }
                                        ],
                                        "fid": 1,
                                        "unit": ""
                                    }
                                },
                                {
                                    "id": 6,
                                    "feature": {
                                        "name": "Number of Cooling Stages",
                                        "format": "uint8",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "1"
                                            }
                                        ],
                                        "fid": 2,
                                        "unit": ""
                                    }
                                },
                                {
                                    "id": 7,
                                    "feature": {
                                        "name": "Heating Capacity by Stage",
                                        "format": "0p5",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "100"
                                            }
                                        ],
                                        "fid": 3,
                                        "unit": "%"
                                    }
                                },
                                {
                                    "id": 8,
                                    "feature": {
                                        "name": "Cooling Capacity by Stage",
                                        "format": "0p5",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "100"
                                            }
                                        ],
                                        "fid": 4,
                                        "unit": "%"
                                    }
                                },
                                {
                                    "id": 9,
                                    "feature": {
                                        "name": "Control Software Revision",
                                        "format": "nts",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "1.10"
                                            }
                                        ],
                                        "fid": 11,
                                        "unit": ""
                                    }
                                },
                                {
                                    "id": 10,
                                    "feature": {
                                        "name": "Control Model Number",
                                        "format": "nts",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "10T50"
                                            }
                                        ],
                                        "fid": 8,
                                        "unit": ""
                                    }
                                },
                                {
                                    "id": 11,
                                    "feature": {
                                        "name": "Control Serial Number",
                                        "format": "nts",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "1710-018423"
                                            }
                                        ],
                                        "fid": 9,
                                        "unit": ""
                                    }
                                },
                                {
                                    "id": 12,
                                    "feature": {
                                        "name": "Control Hardware Revision",
                                        "format": "nts",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "B01"
                                            }
                                        ],
                                        "fid": 10,
                                        "unit": ""
                                    }
                                },
                                {
                                    "id": 13,
                                    "feature": {
                                        "name": "Outdoor Air Temp Sensor",
                                        "format": "tid",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "29"
                                            }
                                        ],
                                        "fid": 34,
                                        "unit": ""
                                    }
                                },
                                {
                                    "id": 14,
                                    "feature": {
                                        "name": "Pre Coil Discharge Air Temp Sensor",
                                        "format": "tid",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "30"
                                            }
                                        ],
                                        "fid": 21,
                                        "unit": ""
                                    }
                                },
                                {
                                    "id": 15,
                                    "feature": {
                                        "name": "Protocol Revision Number",
                                        "format": "uint8",
                                        "szValues": 2,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "1"
                                            },
                                            {
                                                "id": 1,
                                                "value": "6"
                                            }
                                        ],
                                        "fid": 12,
                                        "unit": ""
                                    }
                                },
                                {
                                    "id": 16,
                                    "feature": {
                                        "name": "Device Product Level",
                                        "format": "uint8",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "190"
                                            }
                                        ],
                                        "fid": 13,
                                        "unit": ""
                                    }
                                },
                                {
                                    "id": 17,
                                    "feature": {
                                        "name": "24VAC Average Power Consumption",
                                        "format": "u16q8",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "0"
                                            }
                                        ],
                                        "fid": 17,
                                        "unit": "W"
                                    }
                                },
                                {
                                    "id": 18,
                                    "feature": {
                                        "name": "24VAC Peak Power Consumption",
                                        "format": "u16q8",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "0"
                                            }
                                        ],
                                        "fid": 16,
                                        "unit": "W"
                                    }
                                },
                                {
                                    "id": 19,
                                    "feature": {
                                        "name": "Line Voltage Avg. Power Consumption",
                                        "format": "u16q4",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "0"
                                            }
                                        ],
                                        "fid": 19,
                                        "unit": "W"
                                    }
                                },
                                {
                                    "id": 20,
                                    "feature": {
                                        "name": "Line Voltage Peak Power Consumption",
                                        "format": "u16q4",
                                        "szValues": 1,
                                        "values": [
                                            {
                                                "id": 0,
                                                "value": "0"
                                            }