diff --git a/homeassistant/components/zwave_js/api.py b/homeassistant/components/zwave_js/api.py index 8057b900baa..38d5b99147d 100644 --- a/homeassistant/components/zwave_js/api.py +++ b/homeassistant/components/zwave_js/api.py @@ -342,6 +342,8 @@ async def websocket_node_status( "status": node.status, "is_secure": node.is_secure, "ready": node.ready, + "zwave_plus_version": node.zwave_plus_version, + "highest_security_class": node.highest_security_class, } connection.send_result( msg[ID], diff --git a/tests/components/zwave_js/test_api.py b/tests/components/zwave_js/test_api.py index 44b9acf2db5..f41f5daefb3 100644 --- a/tests/components/zwave_js/test_api.py +++ b/tests/components/zwave_js/test_api.py @@ -147,6 +147,8 @@ async def test_node_status(hass, multisensor_6, integration, hass_ws_client): assert result["is_routing"] assert not result["is_secure"] assert result["status"] == 1 + assert result["zwave_plus_version"] == 1 + assert result["highest_security_class"] == SecurityClass.S0_LEGACY # Test getting non-existent node fails await ws_client.send_json( diff --git a/tests/fixtures/zwave_js/multisensor_6_state.json b/tests/fixtures/zwave_js/multisensor_6_state.json index 131a5aa026f..88cdf893d4a 100644 --- a/tests/fixtures/zwave_js/multisensor_6_state.json +++ b/tests/fixtures/zwave_js/multisensor_6_state.json @@ -1824,5 +1824,6 @@ "label": "Z-Wave chip hardware version" } } - ] + ], + "highestSecurityClass": 7 }